Re: [PATCH 16/17] fs: Convert nr_inodes to a per-cpu counter

From: Christoph Hellwig
Date: Wed Sep 29 2010 - 22:12:43 EST


> +/*
> + * Handle nr_dentry sysctl
> + */
> +int proc_nr_inodes(ctl_table *table, int write,
> + void __user *buffer, size_t *lenp, loff_t *ppos)
> +{
> +#if defined(CONFIG_SYSCTL) && defined(CONFIG_PROC_FS)
> + inodes_stat.nr_inodes = get_nr_inodes();
> + return proc_dointvec(table, write, buffer, lenp, ppos);
> +#else
> + return -ENOSYS;
> +#endif
> +}

Why would we even bother to define the handler if we don't have
/proc/sys/ support?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/