mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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>
This commit is contained in:
parent
0d375a1385
commit
d3906d8f3c
|
|
@ -1849,6 +1849,7 @@ int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx)
|
||||||
!sb_set_blocksize(sb, PAGE_SIZE))
|
!sb_set_blocksize(sb, PAGE_SIZE))
|
||||||
goto err;
|
goto err;
|
||||||
#endif
|
#endif
|
||||||
|
fc->sync_fs = 1;
|
||||||
} else {
|
} else {
|
||||||
sb->s_blocksize = PAGE_SIZE;
|
sb->s_blocksize = PAGE_SIZE;
|
||||||
sb->s_blocksize_bits = PAGE_SHIFT;
|
sb->s_blocksize_bits = PAGE_SHIFT;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user