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

Configure Feed

Select the types of activity you want to include in your feed.

fs/netfs: remove unused flag NETFS_ICTX_WRITETHROUGH

This flag was added by commit 41d8e7673a77 ("netfs: Implement a
write-through caching option") but it was never used.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250519134813.2975312-5-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
9fcf235e 9cd78ca0

+1 -3
+1 -2
fs/netfs/buffered_write.c
··· 115 115 size_t max_chunk = mapping_max_folio_size(mapping); 116 116 bool maybe_trouble = false; 117 117 118 - if (unlikely(test_bit(NETFS_ICTX_WRITETHROUGH, &ctx->flags) || 119 - iocb->ki_flags & (IOCB_DSYNC | IOCB_SYNC)) 118 + if (unlikely(iocb->ki_flags & (IOCB_DSYNC | IOCB_SYNC)) 120 119 ) { 121 120 wbc_attach_fdatawrite_inode(&wbc, mapping->host); 122 121
-1
include/linux/netfs.h
··· 70 70 unsigned long flags; 71 71 #define NETFS_ICTX_ODIRECT 0 /* The file has DIO in progress */ 72 72 #define NETFS_ICTX_UNBUFFERED 1 /* I/O should not use the pagecache */ 73 - #define NETFS_ICTX_WRITETHROUGH 2 /* Write-through caching */ 74 73 #define NETFS_ICTX_MODIFIED_ATTR 3 /* Indicate change in mtime/ctime */ 75 74 #define NETFS_ICTX_SINGLE_NO_UPLOAD 4 /* Monolithic payload, cache but no upload */ 76 75 };