diff options
author | David Howells <dhowells@redhat.com> | 2019-06-20 18:12:17 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-06-20 18:12:17 +0100 |
commit | 452181936931f0f08923aba5e04e1e9ef58c389f (patch) | |
tree | 9516d468bae57461e495be640fbc7af86521cfa8 /fs/afs/server_list.c | |
parent | 051d25250b55c215a2254a0130d46fbd38bcbcc0 (diff) | |
download | lwn-452181936931f0f08923aba5e04e1e9ef58c389f.tar.gz lwn-452181936931f0f08923aba5e04e1e9ef58c389f.zip |
afs: Trace afs_server usage
Add a tracepoint (afs_server) to track the afs_server object usage count.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/server_list.c')
-rw-r--r-- | fs/afs/server_list.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/afs/server_list.c b/fs/afs/server_list.c index 155dc14caef9..f5c78607366e 100644 --- a/fs/afs/server_list.c +++ b/fs/afs/server_list.c @@ -20,7 +20,8 @@ void afs_put_serverlist(struct afs_net *net, struct afs_server_list *slist) if (slist && refcount_dec_and_test(&slist->usage)) { for (i = 0; i < slist->nr_servers; i++) { afs_put_cb_interest(net, slist->servers[i].cb_interest); - afs_put_server(net, slist->servers[i].server); + afs_put_server(net, slist->servers[i].server, + afs_server_trace_put_slist); } kfree(slist); } @@ -71,7 +72,8 @@ struct afs_server_list *afs_alloc_server_list(struct afs_cell *cell, break; if (j < slist->nr_servers) { if (slist->servers[j].server == server) { - afs_put_server(cell->net, server); + afs_put_server(cell->net, server, + afs_server_trace_put_slist_isort); continue; } |