]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: enable write clustering
authorasomers <asomers@FreeBSD.org>
Fri, 14 Jun 2019 18:14:51 +0000 (18:14 +0000)
committerasomers <asomers@FreeBSD.org>
Fri, 14 Jun 2019 18:14:51 +0000 (18:14 +0000)
commitdb2791b1520be648e89b358a90f2214552fd5666
treeaa8bc278baf42dc0e72fea5b381f80e5b2ddc437
parent6922777a55d03afa8d5188f3d60c0c949a8c454c
fusefs: enable write clustering

Enable write clustering in fusefs whenever cache mode is set to writeback
and the "async" mount option is used.  With default values for MAXPHYS,
DFLTPHYS, and the fuse max_write mount parameter, that means sequential
writes will now be written 128KB at a time instead of 64KB.

Also, add a regression test for PR 238565, a panic during unmount that
probably affects UFS, ext2, and msdosfs as well as fusefs.

PR: 238565
Sponsored by: The FreeBSD Foundation
sbin/mount_fusefs/mount_fusefs.8
sbin/mount_fusefs/mount_fusefs.c
sys/fs/fuse/fuse_io.c
sys/fs/fuse/fuse_vfsops.c
tests/sys/fs/fusefs/mockfs.cc
tests/sys/fs/fusefs/mockfs.hh
tests/sys/fs/fusefs/utils.cc
tests/sys/fs/fusefs/utils.hh
tests/sys/fs/fusefs/write.cc