diff options
author | David Howells <dhowells@redhat.com> | 2022-03-04 11:34:27 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2023-12-24 16:08:49 +0100 |
commit | 87b57a048964abfd5f3d8b79bc55687327f5a380 (patch) | |
tree | da96f2d7790757766f978f6fe3322a127b25af1f /include | |
parent | netfs: Move pinning-for-writeback from fscache to netfs (diff) | |
download | linux-87b57a048964abfd5f3d8b79bc55687327f5a380.tar.xz linux-87b57a048964abfd5f3d8b79bc55687327f5a380.zip |
netfs: Add a procfile to list in-progress requests
Add a procfile, /proc/fs/netfs/requests, to list in-progress netfslib I/O
requests.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/netfs.h b/include/linux/netfs.h index 32faf6c89702..7244ddebd974 100644 --- a/include/linux/netfs.h +++ b/include/linux/netfs.h @@ -175,10 +175,14 @@ enum netfs_io_origin { * operations to a variety of data stores and then stitch the result together. */ struct netfs_io_request { - struct work_struct work; + union { + struct work_struct work; + struct rcu_head rcu; + }; struct inode *inode; /* The file being accessed */ struct address_space *mapping; /* The mapping being accessed */ struct netfs_cache_resources cache_resources; + struct list_head proc_link; /* Link in netfs_iorequests */ struct list_head subrequests; /* Contributory I/O operations */ void *netfs_priv; /* Private data for the netfs */ unsigned int debug_id; |