fuse: fix max i/o size calculation
commite5d9a0df07484d6d191756878c974e4307fb24ce
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 30 Apr 2008 07:54:44 +0000 (30 00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:51 +0000 (30 08:29 -0700)
treeb3117ed75242e523dd7c2ff9fc0878b78c7fcb0c
parent5c5c5e51b26413d50a9efae2ca7d6c5c6cd453ac
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