]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: expose the log push threshold
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Feb 2023 05:20:13 +0000 (10:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:37 +0000 (12:50 +0100)
commitd45afdaba03fb919dd023675eb1a0789b2877511
tree73a35bd66059eda075716bcf3d08d2bc1564cea3
parent3fcc3beecf6f9eee56919c5c76fe8b8d80152963
xfs: expose the log push threshold

commit ea128a9b185f3b36e66ca3a73d0db312632b3b6c upstream.

Separate the computation of the log push threshold and the push logic in
xlog_grant_push_ail.  This enables higher level code to determine (for
example) that it is holding on to a logged intent item and the log is so
busy that it is more than 75% full.  In that case, it would be desirable
to move the log item towards the head to release the tail, which we will
cover in the next patch.

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/xfs_icreate_item.c
fs/xfs/xfs_log.c
fs/xfs/xfs_log.h