summaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2025-06-10 07:49:42 +0200
committerAndrew Morton <akpm@linux-foundation.org>2025-07-09 22:41:58 -0700
commita8fb49c6abbbe5c71e1a8a888ef2c4b3e341d169 (patch)
tree5094f549067fe2eb777f4a4a3d2192dedd322c9b /fs/fuse
parentmm: stop passing a writeback_control structure to swap_writeout (diff)
downloadlinux-a8fb49c6abbbe5c71e1a8a888ef2c4b3e341d169.tar.gz
linux-a8fb49c6abbbe5c71e1a8a888ef2c4b3e341d169.zip
mm: remove the for_reclaim field from struct writeback_control
This field is now only set to one in the i915 gem code that only calls writeback_iter on it, which ignores the flag. All other checks are thuse dead code and the field can be removed. Link: https://lkml.kernel.org/r/20250610054959.2057526-7-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Chengming Zhou <chengming.zhou@linux.dev> Cc: Hugh Dickins <hughd@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Nhat Pham <nphamcs@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/file.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 47006d0753f1..95a657a57786 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1927,17 +1927,6 @@ int fuse_write_inode(struct inode *inode, struct writeback_control *wbc)
struct fuse_file *ff;
int err;
- /*
- * Inode is always written before the last reference is dropped and
- * hence this should not be reached from reclaim.
- *
- * Writing back the inode from reclaim can deadlock if the request
- * processing itself needs an allocation. Allocations triggering
- * reclaim while serving a request can't be prevented, because it can
- * involve any number of unrelated userspace processes.
- */
- WARN_ON(wbc->for_reclaim);
-
ff = __fuse_write_file_get(fi);
err = fuse_flush_times(inode, ff);
if (ff)