]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: use the actual AG length when reserving blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 4 Jan 2017 02:39:33 +0000 (18:39 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 4 Jan 2017 02:39:33 +0000 (18:39 -0800)
commit36390bf42543b5e39a17661fb63175225f5646ba
treef17ee4602050d1c97d03527b97addcbb35b48810
parentba6168d6234c0b2559fcdc3b0e8bff0ca9dc9ce2
xfs: use the actual AG length when reserving blocks

We need to use the actual AG length when making per-AG reservations,
since we could otherwise end up reserving more blocks out of the last
AG than there are actual blocks.

Complained-about-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_ag_resv.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_refcount_btree.h
fs/xfs/libxfs/xfs_rmap_btree.c
fs/xfs/libxfs/xfs_rmap_btree.h
fs/xfs/xfs_fsops.c