]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: report "max_resp" used for min log size computation
authorDarrick J. Wong <djwong@kernel.org>
Tue, 26 Apr 2022 01:38:13 +0000 (18:38 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 28 Apr 2022 17:25:23 +0000 (10:25 -0700)
commit4329118f77e9cd7ca519c32ab970800726c6ecde
tree6d0964e3437f7b7c4660b37d79d66681f4273f38
parent625ac2ec4527b863baae26db3435e73513546a8b
xfs: report "max_resp" used for min log size computation

Move the tracepoint that computes the size of the transaction used to
compute the minimum log size into xfs_log_get_max_trans_res so that we
only have to compute this stuff once.

Leave xfs_log_get_max_trans_res as a non-static function so that xfs_db
can call it to report the results of the userspace computation of the
same value to diagnose mkfs/kernel misinteractions.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_log_rlimit.c
fs/xfs/xfs_trace.h
fs/xfs/xfs_trans.c