]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: rework the perag trace points to be perag centric
authorDave Chinner <dchinner@redhat.com>
Tue, 9 May 2023 09:29:42 +0000 (11:29 +0200)
committerCarlos Maiolino <cem@kernel.org>
Wed, 10 May 2023 06:23:34 +0000 (08:23 +0200)
commit35398d0d644ffb50f3146564e62f8c23ad2bcb6b
treeea538b8d297ee00a5120585c27d3df228379ecfe
parent7ab297988a0b0011688d81835bf8e9bd7b95bdb3
xfs: rework the perag trace points to be perag centric

Source kernel commit: 368e2d09b41caa5b44a61bb518c362f46d6d615c

So that they all output the same information in the traces to make
debugging refcount issues easier.

This means that all the lookup/drop functions no longer need to use
the full memory barrier atomic operations (atomic*_return()) so
will have less overhead when tracing is off. The set/clear tag
tracepoints no longer abuse the reference count to pass the tag -
the tag being cleared is obvious from the _RET_IP_ that is recorded
in the trace point.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
include/xfs_trace.h
libxfs/xfs_ag.c