Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/netfs: declare field `proc_link` only if CONFIG_PROC_FS=y

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>

authored by

Max Kellermann and committed by
Christian Brauner
07c08bac 3dc00bca

+2
+2
include/linux/netfs.h
··· 228 228 struct kiocb *iocb; /* AIO completion vector */ 229 229 struct netfs_cache_resources cache_resources; 230 230 struct netfs_io_request *copy_to_cache; /* Request to write just-read data to the cache */ 231 + #ifdef CONFIG_PROC_FS 231 232 struct list_head proc_link; /* Link in netfs_iorequests */ 233 + #endif 232 234 struct netfs_io_stream io_streams[2]; /* Streams of parallel I/O operations */ 233 235 #define NR_IO_STREAMS 2 //wreq->nr_io_streams 234 236 struct netfs_group *group; /* Writeback group being written back */