Skip to content

Commit d3906d8

Browse files
Darrick J. WongMiklos Szeredi
authored andcommitted
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 <djwong@kernel.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent 0d375a1 commit d3906d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/fuse/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,7 @@ int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx)
18491849
!sb_set_blocksize(sb, PAGE_SIZE))
18501850
goto err;
18511851
#endif
1852+
fc->sync_fs = 1;
18521853
} else {
18531854
sb->s_blocksize = PAGE_SIZE;
18541855
sb->s_blocksize_bits = PAGE_SHIFT;

0 commit comments

Comments
 (0)