diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-04-26 04:38:13 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-04-28 20:25:23 +0300 |
commit | 918247ce541995dba05391cf14d6061cf0844866 (patch) | |
tree | 6d0964e3437f7b7c4660b37d79d66681f4273f38 /fs/xfs/libxfs/xfs_log_rlimit.c | |
parent | 52d8ea4f2406c14d632a0e7f816bbb18d8c3e9ed (diff) | |
download | linux-918247ce541995dba05391cf14d6061cf0844866.tar.xz |
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_log_rlimit.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_log_rlimit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_log_rlimit.c b/fs/xfs/libxfs/xfs_log_rlimit.c index 4d04568ab07e..1db27c3a1d16 100644 --- a/fs/xfs/libxfs/xfs_log_rlimit.c +++ b/fs/xfs/libxfs/xfs_log_rlimit.c @@ -76,6 +76,7 @@ xfs_log_get_max_trans_res( *max_resp = resv.tr_attrsetm; /* struct copy */ max_resp->tr_logres = attr_space; } + trace_xfs_log_get_max_trans_res(mp, max_resp); } /* |