diff options
author | David Howells <dhowells@redhat.com> | 2018-04-04 14:41:27 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-04-04 14:41:27 +0200 |
commit | 08c2e3d087840cd1e7141b62d92f3dc897147984 (patch) | |
tree | f5b5ad5c4732cc5cc4f5244f8153ad134a71d979 /fs/fscache/cookie.c | |
parent | fscache: Add tracepoints (diff) | |
download | linux-08c2e3d087840cd1e7141b62d92f3dc897147984.tar.xz linux-08c2e3d087840cd1e7141b62d92f3dc897147984.zip |
fscache: Add more tracepoints
Add more tracepoints to fscache, including:
(*) fscache_page - Tracks netfs pages known to fscache.
(*) fscache_check_page - Tracks the netfs querying whether a page is
pending storage.
(*) fscache_wake_cookie - Tracks cookies being woken up after a page
completes/aborts storage in the cache.
(*) fscache_op - Tracks operations being initialised.
(*) fscache_wrote_page - Tracks return of the backend write_page op.
(*) fscache_gang_lookup - Tracks lookup of pages to be stored in the write
operation.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/fscache/cookie.c')
-rw-r--r-- | fs/fscache/cookie.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fscache/cookie.c b/fs/fscache/cookie.c index 20bc3341f113..ea1f80daaff4 100644 --- a/fs/fscache/cookie.c +++ b/fs/fscache/cookie.c @@ -691,10 +691,11 @@ int __fscache_check_consistency(struct fscache_cookie *cookie) if (!op) return -ENOMEM; - fscache_operation_init(op, NULL, NULL, NULL); + fscache_operation_init(cookie, op, NULL, NULL, NULL); op->flags = FSCACHE_OP_MYTHREAD | (1 << FSCACHE_OP_WAITING) | (1 << FSCACHE_OP_UNUSE_COOKIE); + trace_fscache_page_op(cookie, NULL, op, fscache_page_op_check_consistency); spin_lock(&cookie->lock); |