]> git.karo-electronics.de Git - karo-tx-linux.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)
commit20e73b000bcded44a91b79429d8fa743247602ad
treef17ee4602050d1c97d03527b97addcbb35b48810
parent7a21272b088894070391a94fdd1c67014020fa1d
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