]> 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)
commit216ed595fd89fe4e50737c00e5739b4b47f42756
tree73a35bd66059eda075716bcf3d08d2bc1564cea3
parent097f47f0e1201db5c1abec539204ccb049d8c8de
xfs: expose the log push threshold

commit f97c587fcfdd3240224d9a2312ea5c56fbd145c2 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