]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix up agi unlinked list reservations
authorBrian Foster <bfoster@redhat.com>
Mon, 8 Jan 2018 18:41:36 +0000 (10:41 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Jan 2018 18:41:36 +0000 (10:41 -0800)
commitd7abf570b58aa4a754aaa2f1e04347ee97434ff8
treee13c4141867a7d431b0855075a61b22cc30426cf
parentf70bc697ec2b7d7433f057e07e4c19138a6a8cfa
xfs: fix up agi unlinked list reservations

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