]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: expose the log push threshold
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 26 Sep 2020 00:39:51 +0000 (17:39 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 7 Oct 2020 15:40:29 +0000 (08:40 -0700)
commitea128a9b185f3b36e66ca3a73d0db312632b3b6c
tree3a9afff06426ae475cbb95b93fd4bff0fe67d98b
parent648be8f40ecbc0068c15f37f856df7f47638c5dd
xfs: expose the log push threshold

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