aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-01-06 03:19:41 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:33:56 -0500
commit3ec870d524c9150add120475c8ddcfa50574f98e (patch)
tree62918ff93aac09bc13d4730208a8c8bc1fec4e40 /fs/fuse/inode.c
parent1d3d752b471d2a3a1d5e4fe177e5e7d52abb4e4c (diff)
[PATCH] fuse: make maximum write data configurable
Make the maximum size of write data configurable by the filesystem. The previous fixed 4096 limit only worked on architectures where the page size is less or equal to this. This change make writing work on other architectures too, and also lets the filesystem receive bigger write requests in direct_io mode. Normal writes which go through the page cache are still limited to a page sized chunk per request. Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r--fs/fuse/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 3580b9e12345..e4541869831e 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -485,7 +485,6 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)
485 fc->max_read = d.max_read; 485 fc->max_read = d.max_read;
486 if (fc->max_read / PAGE_CACHE_SIZE < fc->bdi.ra_pages) 486 if (fc->max_read / PAGE_CACHE_SIZE < fc->bdi.ra_pages)
487 fc->bdi.ra_pages = fc->max_read / PAGE_CACHE_SIZE; 487 fc->bdi.ra_pages = fc->max_read / PAGE_CACHE_SIZE;
488 fc->max_write = FUSE_MAX_WRITE;
489 488
490 err = -ENOMEM; 489 err = -ENOMEM;
491 root = get_root_inode(sb, d.rootmode); 490 root = get_root_inode(sb, d.rootmode);