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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +/*
> + * 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-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux