diff options
| author | Max Kellermann <[email protected]> | 2025-05-19 13:48:00 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-05-21 12:34:37 +0000 |
| commit | 9fcf235e91fae9f3e99f4e09d332ed09296b11ec (patch) | |
| tree | 1c038d0528aeb6ca366b8acebb201379e917b344 /fs/netfs/buffered_write.c | |
| parent | fs/netfs: remove unused source NETFS_INVALID_WRITE (diff) | |
| download | kernel-9fcf235e91fae9f3e99f4e09d332ed09296b11ec.tar.gz kernel-9fcf235e91fae9f3e99f4e09d332ed09296b11ec.zip | |
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 <[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]>
Diffstat (limited to 'fs/netfs/buffered_write.c')
| -rw-r--r-- | fs/netfs/buffered_write.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/netfs/buffered_write.c b/fs/netfs/buffered_write.c index b4826360a411..26a789c8ce18 100644 --- a/fs/netfs/buffered_write.c +++ b/fs/netfs/buffered_write.c @@ -115,8 +115,7 @@ ssize_t netfs_perform_write(struct kiocb *iocb, struct iov_iter *iter, size_t max_chunk = mapping_max_folio_size(mapping); bool maybe_trouble = false; - if (unlikely(test_bit(NETFS_ICTX_WRITETHROUGH, &ctx->flags) || - iocb->ki_flags & (IOCB_DSYNC | IOCB_SYNC)) + if (unlikely(iocb->ki_flags & (IOCB_DSYNC | IOCB_SYNC)) ) { wbc_attach_fdatawrite_inode(&wbc, mapping->host); |
