]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: only relog deferred intent items if free space in the log gets low
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Nov 2020 22:21:54 +0000 (17:21 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 12 Nov 2020 22:21:54 +0000 (17:21 -0500)
commite49ec9edb54ec4c72f7523bf5394fa6bb117eb7e
tree78ec6eb4e825031122468082b8d9776de988746b
parent1826a6b08406822f69ebef13ffff69bd41382aae
xfs: only relog deferred intent items if free space in the log gets low

Source kernel commit: 74f4d6a1e065c92428c5b588099e307a582d79d9

Now that we have the ability to ask the log how far the tail needs to be
pushed to maintain its free space targets, augment the decision to relog
an intent item so that we only do it if the log has hit the 75% full
threshold.  There's no point in relogging an intent into the same
checkpoint, and there's no need to relog if there's plenty of free space
in the log.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_trans.h
libxfs/xfs_defer.c