diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-06-22 14:28:52 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@sandeen.net> | 2022-06-22 14:28:52 -0500 |
commit | 3deaaa1fcf80995899b38847e49d9056249f31c9 (patch) | |
tree | f641088dced51097371aeaf8a22d85b41538668b | |
parent | ad769a07b1cc00c1460abbb93d3f7aa14aa09912 (diff) | |
download | xfsprogs-dev-3deaaa1fcf80995899b38847e49d9056249f31c9.tar.gz |
xfs: report "max_resp" used for min log size computation
Source kernel commit: 918247ce541995dba05391cf14d6061cf0844866
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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | include/xfs_trace.h | 1 | ||||
-rw-r--r-- | libxfs/xfs_log_rlimit.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/xfs_trace.h b/include/xfs_trace.h index 951ded3d5b..683f578fae 100644 --- a/include/xfs_trace.h +++ b/include/xfs_trace.h @@ -195,6 +195,7 @@ #define trace_xfs_trans_read_buf(a) ((void) 0) #define trace_xfs_trans_commit(a,b) ((void) 0) #define trace_xfs_trans_resv_calc_minlogsize(a,b,c) ((void) 0) +#define trace_xfs_log_get_max_trans_res(a,b) ((void) 0) #define trace_xfs_defer_cancel(a,b) ((void) 0) #define trace_xfs_defer_pending_commit(a,b) ((void) 0) diff --git a/libxfs/xfs_log_rlimit.c b/libxfs/xfs_log_rlimit.c index 44300abcd4..1a55618fe9 100644 --- a/libxfs/xfs_log_rlimit.c +++ b/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); } /* |