[PATCH 20/39] afs: simplify procfs code

David Howells dhowells at redhat.com
Mon Apr 30 07:37:10 PDT 2018


Christoph Hellwig <hch at lst.de> 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



More information about the linux-afs mailing list