]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: only relog deferred intent items if free space in the log gets low
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Feb 2023 05:20:14 +0000 (10:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:37 +0000 (12:50 +0100)
commit78ca68d8b165a739acaa00261b9e37bcbe7421fe
tree73c72badc72316b315140546fdf560fbe9cc7ff4
parentd45afdaba03fb919dd023675eb1a0789b2877511
xfs: only relog deferred intent items if free space in the log gets low

commit d5047cc3a2cd5889dfe5eca9c03d377a8219914e upstream.

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: Chandan Babu R <chandan.babu@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_defer.c