OSDN Git Service

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)
commit918247ce541995dba05391cf14d6061cf0844866
tree6d0964e3437f7b7c4660b37d79d66681f4273f38
parent52d8ea4f2406c14d632a0e7f816bbb18d8c3e9ed
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