From: Darrick J. Wong Date: Tue, 16 Sep 2025 00:26:09 +0000 (-0700) Subject: fuse: enable FUSE_SYNCFS for all fuseblk servers X-Git-Tag: v6.18-rc1~121^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3906d8f3cee0279d459dc88b5a871fcdcd4b236;p=thirdparty%2Fkernel%2Flinux.git fuse: enable FUSE_SYNCFS for all fuseblk servers 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 Signed-off-by: Miklos Szeredi --- diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index a4d361b34d063..6fcfa15da8685 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1849,6 +1849,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;