summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2026-09-09 08:20:59 +0100
committerChristian Brauner <brauner@kernel.org>2026-10-06 15:32:35 +0200
commit634696be11359b74cb2a6ca285e5662f319e8346 (patch)
tree76b81e5afaf25583d0ba6f167e01ec2a245286c6 /include/linux
parent03b200b256855cb95c3eab75e7355eea91793643 (diff)
netfs: Add the cache object ID to netfs_read/write tracepoints
Add the cache object debug ID to netfs_read/write tracepoints to make debugging easier as there's now a direct cross-reference with the cachefiles tracepoints that only log that debug ID. Signed-off-by: David Howells <dhowells@redhat.com> Link: https://patch.msgid.link/20260909072105.1663687-6-dhowells@redhat.com Reviewed-by: Paulo Alcantara <pc@manguebit.org> cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netfs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/netfs.h b/include/linux/netfs.h
index 0fb4884daf6d..c574aaa7de94 100644
--- a/include/linux/netfs.h
+++ b/include/linux/netfs.h
@@ -161,7 +161,8 @@ struct netfs_cache_resources {
const struct netfs_cache_ops *ops;
void *cache_priv;
void *cache_priv2;
- unsigned int debug_id; /* Cookie debug ID */
+ unsigned int cookie_id; /* Cache cookie debug ID */
+ unsigned int object_id; /* Cache object debug ID */
unsigned int inval_counter; /* object->inval_counter at begin_op */
};