From: David Howells Subject: Re: [PATCH 20/39] afs: simplify procfs code Date: Mon, 30 Apr 2018 15:37:10 +0100 Message-ID: <19809.1525099030@warthog.procyon.org.uk> References: <20180424141248.GA26136@lst.de> <22411.1524142823@warthog.procyon.org.uk> <20180419124140.9309-21-hch@lst.de> <20180419124140.9309-1-hch@lst.de> <22726.1524227374@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: dhowells@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Viro , Andrew Morton , linux-afs@lists.infradead.org, Alexey Dobriyan To: Christoph Hellwig Return-path: In-Reply-To: <20180424141248.GA26136@lst.de> Content-ID: <19808.1525099030.1@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Christoph Hellwig 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