afs: Add tracing for cell refcount and active user count
authorDavid Howells <dhowells@redhat.com>
Tue, 13 Oct 2020 19:51:59 +0000 (20:51 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 16 Oct 2020 13:39:21 +0000 (14:39 +0100)
commitdca54a7bbb8ca9148ae10d60c66c926e222a9c4b
tree7a963929b4c3ef79910ef1c56ea1ea45248fcfb7
parent1d0e850a49a5b56f8f3cb51e74a11e2fedb96be6
afs: Add tracing for cell refcount and active user count

Add a tracepoint to log the cell refcount and active user count and pass in
a reason code through various functions that manipulate these counters.

Additionally, a helper function, afs_see_cell(), is provided to log
interesting places that deal with a cell without actually doing any
accounting directly.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/cell.c
fs/afs/dynroot.c
fs/afs/internal.h
fs/afs/mntpt.c
fs/afs/proc.c
fs/afs/super.c
fs/afs/vl_alias.c
fs/afs/vl_rotate.c
fs/afs/volume.c
include/trace/events/afs.h