Messages in this thread Patch in this message | | | Subject | Re: [RFC] pdirops: tmpfs patch | From | Alex Tomas <> | Date | Sat, 19 Feb 2005 21:05:12 +0300 |
| |
Index: linux-2.6.10/mm/shmem.c =================================================================== --- linux-2.6.10.orig/mm/shmem.c 2005-01-28 19:32:16.000000000 +0300 +++ linux-2.6.10/mm/shmem.c 2005-02-19 20:05:32.642599576 +0300 @@ -1849,7 +1849,7 @@ #endif }; -static int shmem_parse_options(char *options, int *mode, uid_t *uid, gid_t *gid, unsigned long *blocks, unsigned long *inodes) +static int shmem_parse_options(char *options, int *mode, uid_t *uid, gid_t *gid, unsigned long *blocks, unsigned long *inodes, struct super_block *sb) { char *this_char, *value, *rest; @@ -1858,6 +1858,9 @@ continue; if ((value = strchr(this_char,'=')) != NULL) { *value++ = 0; + } else if (!strcmp(this_char,"pdirops")) { + sb->s_flags |= S_PDIROPS; + continue; } else { printk(KERN_ERR "tmpfs: No value for mount option '%s'\n", @@ -1928,7 +1931,7 @@ max_blocks = sbinfo->max_blocks; max_inodes = sbinfo->max_inodes; } - if (shmem_parse_options(data, NULL, NULL, NULL, &max_blocks, &max_inodes)) + if (shmem_parse_options(data, NULL, NULL, NULL, &max_blocks, &max_inodes, sb)) return -EINVAL; /* Keep it simple: disallow limited <-> unlimited remount */ if ((max_blocks || max_inodes) == !sbinfo) @@ -1978,7 +1981,7 @@ inodes = blocks; if (shmem_parse_options(data, &mode, - &uid, &gid, &blocks, &inodes)) + &uid, &gid, &blocks, &inodes, sb)) return -EINVAL; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |