]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: use the actual AG length when reserving blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Jan 2017 02:06:43 +0000 (20:06 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 11 Jan 2017 02:06:43 +0000 (20:06 -0600)
commitf21c57ed29e237f331a3970ba65a2cb43f60e8e6
treea7576fd7ca3db6d2e3dbaa3dfa3535b7b198e077
parent762989ef687272637c261efc5ae0842a053ee863
xfs: use the actual AG length when reserving blocks

Source kernel commit: 20e73b000bcded44a91b79429d8fa743247602ad

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_ag_resv.c
libxfs/xfs_refcount_btree.c
libxfs/xfs_refcount_btree.h
libxfs/xfs_rmap_btree.c
libxfs/xfs_rmap_btree.h