vserver 1.9.3
[linux-2.6.git] / fs / xfs / linux-2.6 / xfs_sysctl.c
index 4a173d3..c245296 100644 (file)
@@ -45,7 +45,7 @@ xfs_stats_clear_proc_handler(
        ctl_table       *ctl,
        int             write,
        struct file     *filp,
-       void            *buffer,
+       void            __user *buffer,
        size_t          *lenp,
        loff_t          *ppos)
 {
@@ -129,6 +129,11 @@ STATIC ctl_table xfs_table[] = {
        &sysctl_intvec, NULL,
        &xfs_params.xfs_buf_age.min, &xfs_params.xfs_buf_age.max},
 
+       {XFS_INHERIT_NOSYM, "inherit_nosymlinks", &xfs_params.inherit_nosym.val,
+       sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+       &sysctl_intvec, NULL,
+       &xfs_params.inherit_nosym.min, &xfs_params.inherit_nosym.max},
+
        /* please keep this the last entry */
 #ifdef CONFIG_PROC_FS
        {XFS_STATS_CLEAR, "stats_clear", &xfs_params.stats_clear.val,