]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
fuse: enable FUSE_SYNCFS for all fuseblk servers
authorDarrick J. Wong <djwong@kernel.org>
Tue, 16 Sep 2025 00:26:09 +0000 (17:26 -0700)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 23 Sep 2025 10:45:25 +0000 (12:45 +0200)
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>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/inode.c

index a4d361b34d0632d43663440bbfe04ea285f69a4f..6fcfa15da868531abe0180625f027d6fc135d4d3 100644 (file)
@@ -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;