]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: only update mount/resv fields on success in __xfs_ag_resv_init
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jan 2017 15:49:34 +0000 (07:49 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 25 Jan 2017 15:49:34 +0000 (07:49 -0800)
commit743e805ee8f8488abc2df06c54e26223c7fa22bf
tree8cb15b77239a4c5655f3090e627cd2bfa051ff01
parent225bc1b19e6f113fa30f52d9e94526b94e109a62
xfs: only update mount/resv fields on success in __xfs_ag_resv_init

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>
fs/xfs/libxfs/xfs_ag_resv.c