diff options
author | Christoph Hellwig <hch@lst.de> | 2025-02-09 06:08:20 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2025-03-03 08:16:43 -0700 |
commit | a0760cca8e1007be7bfa154004e566b2a4fbcd71 (patch) | |
tree | 71b8d3d59b738e9b621968b9bbac009c79c5f4eb /fs/xfs/xfs_mount.c | |
parent | c8c4e8bc692ae0cd062eaabf99ff9d0d143a6370 (diff) |
xfs: trace in-memory freecounter reservations
Add two tracepoints when the freecounter dips into the reserved pool
and when it is entirely out of space.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 01f387784039..a77a2de11278 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c @@ -1341,6 +1341,7 @@ xfs_dec_freecounter( goto fdblocks_enospc; } counter->res_avail -= delta; + trace_xfs_freecounter_reserved(mp, ctr, delta, _RET_IP_); spin_unlock(&mp->m_sb_lock); } @@ -1348,6 +1349,7 @@ xfs_dec_freecounter( return 0; fdblocks_enospc: + trace_xfs_freecounter_enospc(mp, ctr, delta, _RET_IP_); spin_unlock(&mp->m_sb_lock); return -ENOSPC; } |