We need the fs/quota/ path for the quota tables.
Signed-off-by: Pavel Emelyanov <[email protected]>
---
diff --git a/fs/dquot.c b/fs/dquot.c
index efee14d..1968495 100644
--- a/fs/dquot.c
+++ b/fs/dquot.c
@@ -1900,22 +1900,14 @@ static ctl_table fs_dqstats_table[] = {
{ .ctl_name = 0 },
};
-static ctl_table fs_table[] = {
+static struct ctl_path fs_quota_path[] = {
{
- .ctl_name = FS_DQSTATS,
- .procname = "quota",
- .mode = 0555,
- .child = fs_dqstats_table,
+ .procname = "fs",
+ .ctl_name = CTL_FS,
},
- { .ctl_name = 0 },
-};
-
-static ctl_table sys_table[] = {
{
- .ctl_name = CTL_FS,
- .procname = "fs",
- .mode = 0555,
- .child = fs_table,
+ .procname = "quota",
+ .ctl_name = FS_DQSTATS,
},
{ .ctl_name = 0 },
};
@@ -1929,7 +1921,7 @@ static int __init dquot_init(void)
printk(KERN_NOTICE "VFS: Disk quotas %s\n", __DQUOT_VERSION__);
#ifdef CONFIG_SYSCTL
- register_sysctl_table(sys_table);
+ register_sysctl_paths(fs_quota_path, fs_dqstats_table);
#endif
dquot_cachep = kmem_cache_create("dquot",
--
1.5.3.4
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]