Re: [PATCH 20/39] afs: simplify procfs code

From: David Howells
Date: Mon Apr 30 2018 - 10:37:18 EST


Christoph Hellwig <hch@xxxxxx> wrote:

> I don't think you should need any of these. seq_file_net or
> seq_file_single_net will return you the net_ns based on a struct
> seq_file. And even from your write routines you can reach the
> seq_file in file->private pretty easily.

You've taken away things like single_open/release_net() which means I can't
supply my own fops and use the proc_net stuff. I wonder if I should add a
write op to struct proc_dir_entry.

David