]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: fix max i/o size calculation
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 30 Apr 2008 07:54:44 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:51 +0000 (08:29 -0700)
commit02dfc16c15ad6bce6c07760488f10e2907f5650d
treeb3117ed75242e523dd7c2ff9fc0878b78c7fcb0c
parentca609249431c394f2e79ac7f6124e021c07196e8
fuse: fix max i/o size calculation

Fix a bug that Werner Baumann reported: fuse can send a bigger write request
than the maximum specified.  This only affected direct_io operation.

In addition set a sane minimum for the max_read and max_write tunables, so I/O
always makes some progress.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/file.c
fs/fuse/inode.c