Skip to content

Commit 9fcf235

Browse files
MaxKellermannbrauner
authored andcommitted
fs/netfs: remove unused flag NETFS_ICTX_WRITETHROUGH
This flag was added by commit 41d8e76 ("netfs: Implement a write-through caching option") but it was never used. 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 9cd78ca commit 9fcf235

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

fs/netfs/buffered_write.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ ssize_t netfs_perform_write(struct kiocb *iocb, struct iov_iter *iter,
115115
size_t max_chunk = mapping_max_folio_size(mapping);
116116
bool maybe_trouble = false;
117117

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))
120119
) {
121120
wbc_attach_fdatawrite_inode(&wbc, mapping->host);
122121

include/linux/netfs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ struct netfs_inode {
7070
unsigned long flags;
7171
#define NETFS_ICTX_ODIRECT 0 /* The file has DIO in progress */
7272
#define NETFS_ICTX_UNBUFFERED 1 /* I/O should not use the pagecache */
73-
#define NETFS_ICTX_WRITETHROUGH 2 /* Write-through caching */
7473
#define NETFS_ICTX_MODIFIED_ATTR 3 /* Indicate change in mtime/ctime */
7574
#define NETFS_ICTX_SINGLE_NO_UPLOAD 4 /* Monolithic payload, cache but no upload */
7675
};

0 commit comments

Comments
 (0)