aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-09-09 16:10:37 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 17:03:47 -0400
commit45323fb76465a9576220c7427dbac7b1e7ad3caf (patch)
tree5d3e5f9a01cdaf6aaabe38520d5bd5b2d744acd5 /fs/fuse/inode.c
parent04730fef1f9c7277e5c730b193e681ac095b0507 (diff)
[PATCH] fuse: more flexible caching
Make data caching behavior selectable on a per-open basis instead of per-mount. Compatibility for the old mount options 'kernel_cache' and 'direct_io' is retained in the userspace library (version 2.4.0-pre1 or later). 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.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 652c9d5df973..8dc66760b41a 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -257,8 +257,6 @@ enum {
257 OPT_GROUP_ID, 257 OPT_GROUP_ID,
258 OPT_DEFAULT_PERMISSIONS, 258 OPT_DEFAULT_PERMISSIONS,
259 OPT_ALLOW_OTHER, 259 OPT_ALLOW_OTHER,
260 OPT_KERNEL_CACHE,
261 OPT_DIRECT_IO,
262 OPT_MAX_READ, 260 OPT_MAX_READ,
263 OPT_ERR 261 OPT_ERR
264}; 262};
@@ -270,8 +268,6 @@ static match_table_t tokens = {
270 {OPT_GROUP_ID, "group_id=%u"}, 268 {OPT_GROUP_ID, "group_id=%u"},
271 {OPT_DEFAULT_PERMISSIONS, "default_permissions"}, 269 {OPT_DEFAULT_PERMISSIONS, "default_permissions"},
272 {OPT_ALLOW_OTHER, "allow_other"}, 270 {OPT_ALLOW_OTHER, "allow_other"},
273 {OPT_KERNEL_CACHE, "kernel_cache"},
274 {OPT_DIRECT_IO, "direct_io"},
275 {OPT_MAX_READ, "max_read=%u"}, 271 {OPT_MAX_READ, "max_read=%u"},
276 {OPT_ERR, NULL} 272 {OPT_ERR, NULL}
277}; 273};
@@ -327,14 +323,6 @@ static int parse_fuse_opt(char *opt, struct fuse_mount_data *d)
327 d->flags |= FUSE_ALLOW_OTHER; 323 d->flags |= FUSE_ALLOW_OTHER;
328 break; 324 break;
329 325
330 case OPT_KERNEL_CACHE:
331 d->flags |= FUSE_KERNEL_CACHE;
332 break;
333
334 case OPT_DIRECT_IO:
335 d->flags |= FUSE_DIRECT_IO;
336 break;
337
338 case OPT_MAX_READ: 326 case OPT_MAX_READ:
339 if (match_int(&args[0], &value)) 327 if (match_int(&args[0], &value))
340 return 0; 328 return 0;
@@ -363,10 +351,6 @@ static int fuse_show_options(struct seq_file *m, struct vfsmount *mnt)
363 seq_puts(m, ",default_permissions"); 351 seq_puts(m, ",default_permissions");
364 if (fc->flags & FUSE_ALLOW_OTHER) 352 if (fc->flags & FUSE_ALLOW_OTHER)
365 seq_puts(m, ",allow_other"); 353 seq_puts(m, ",allow_other");
366 if (fc->flags & FUSE_KERNEL_CACHE)
367 seq_puts(m, ",kernel_cache");
368 if (fc->flags & FUSE_DIRECT_IO)
369 seq_puts(m, ",direct_io");
370 if (fc->max_read != ~0) 354 if (fc->max_read != ~0)
371 seq_printf(m, ",max_read=%u", fc->max_read); 355 seq_printf(m, ",max_read=%u", fc->max_read);
372 return 0; 356 return 0;