]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs/netfs: declare field `proc_link` only if CONFIG_PROC_FS=y
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 19 May 2025 13:48:04 +0000 (14:48 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 21 May 2025 12:34:38 +0000 (14:34 +0200)
This field is only used for the "proc" filesystem.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250519134813.2975312-9-dhowells@redhat.com
cc: Paulo Alcantara <pc@manguebit.com>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/netfs.h

index 2b127527544ea3e12a6c1c28def17f1f51bff71f..3f7056d837f809e36d7da770f1cca56074836fad 100644 (file)
@@ -228,7 +228,9 @@ struct netfs_io_request {
        struct kiocb            *iocb;          /* AIO completion vector */
        struct netfs_cache_resources cache_resources;
        struct netfs_io_request *copy_to_cache; /* Request to write just-read data to the cache */
+#ifdef CONFIG_PROC_FS
        struct list_head        proc_link;      /* Link in netfs_iorequests */
+#endif
        struct netfs_io_stream  io_streams[2];  /* Streams of parallel I/O operations */
 #define NR_IO_STREAMS 2 //wreq->nr_io_streams
        struct netfs_group      *group;         /* Writeback group being written back */