]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: fix up agi unlinked list reservations
authorBrian Foster <bfoster@redhat.com>
Tue, 27 Feb 2018 04:43:15 +0000 (22:43 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Feb 2018 04:43:15 +0000 (22:43 -0600)
commit727b445bb72f50b073491261bc016cf32ad6d271
tree2afb53e42a5b2be0c63892fefc0377067e0d9080
parent12382cd23059944d5dfdb516e4c90334fc3415e6
xfs: fix up agi unlinked list reservations

Source kernel commit: e8341d9f6348640dff01d8c4a33695dc82bab5a3

The current AGI unlinked list addition and removal reservations do
not reflect the worst case log usage. An unlinked list removal can
log up to two on-disk inode clusters but only includes reservation
for one. An unlinked list addition logs the on-disk cluster but
includes reservation for an in-core inode.

Update the AGI unlinked list reservation helpers to calculate the
correct worst case reservation for the associated operations.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
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_trans_resv.c