Skip to content

Commit 07c08ba

Browse files
MaxKellermannbrauner
authored andcommitted
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 <[email protected]> Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/[email protected] cc: Paulo Alcantara <[email protected]> cc: [email protected] cc: [email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 3dc00bc commit 07c08ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/netfs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ struct netfs_io_request {
228228
struct kiocb *iocb; /* AIO completion vector */
229229
struct netfs_cache_resources cache_resources;
230230
struct netfs_io_request *copy_to_cache; /* Request to write just-read data to the cache */
231+
#ifdef CONFIG_PROC_FS
231232
struct list_head proc_link; /* Link in netfs_iorequests */
233+
#endif
232234
struct netfs_io_stream io_streams[2]; /* Streams of parallel I/O operations */
233235
#define NR_IO_STREAMS 2 //wreq->nr_io_streams
234236
struct netfs_group *group; /* Writeback group being written back */

0 commit comments

Comments
 (0)