[PATCH 8/8] fuse: enable FUSE_SYNCFS for all fuseblk servers

Darrick J. Wong
2025-09-16T00:26:09Z

Turn on syncfs for all fuseblk servers so that the ones in the know can
flush cached intermediate data and logs to disk.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
fs/fuse/inode.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 55db991bb6b8c1..869d8a87bfb628 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -1824,6 +1824,7 @@ int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx)
!sb_set_blocksize(sb, PAGE_SIZE))
goto err;
#endif
+ fc->sync_fs = 1;
} else {
sb->s_blocksize = PAGE_SIZE;
sb->s_blocksize_bits = PAGE_SHIFT;