Re: [PATCH 03/39] proc: introduce proc_create_seq_private

Alexey Dobriyan <[email protected]> Thu, 19 Apr 2018 21:50:27 +0300
Newsgroups gmane.comp.file-systems.jfs.general
Message-ID <20180419185027.GC2066__37821.0311675959$1524234912$gmane$org@avx2>
On Thu, Apr 19, 2018 at 02:41:04PM +0200, Christoph Hellwig wrote:
> Variant of proc_create_data that directly take a struct seq_operations

> --- a/fs/proc/internal.h
> +++ b/fs/proc/internal.h
> @@ -45,6 +45,7 @@ struct proc_dir_entry {
>  	const struct inode_operations *proc_iops;
>  	const struct file_operations *proc_fops;
>  	const struct seq_operations *seq_ops;
> +	size_t state_size;

"unsigned int" please.

Where have you seen 4GB priv states?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot