]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: only update mount/resv fields on success in __xfs_ag_resv_init
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Feb 2017 03:04:02 +0000 (21:04 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 16 Feb 2017 03:04:02 +0000 (21:04 -0600)
commit2ffa676f9a967c6664b500d9b963ba358b37d606
tree8e069fd5b6391e7b0b805aceb7091b6497f2d636
parent2e6fca287e26c984578a6fd980a569213d16d600
xfs: only update mount/resv fields on success in __xfs_ag_resv_init

Source kernel commit: 4dfa2b84118fd6c95202ae87e62adf5000ccd4d0

Try to reserve the blocks first and only then update the fields in
or hanging off the mount structure.  This way we can call __xfs_ag_resv_init
again after a previous failure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_ag_resv.c