From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 3/7] FS-Cache: Avoid ENFILE checking for kernel-specific open files Date: Thu, 20 Apr 2006 17:11:18 -0700 Message-ID: <20060420171118.119ddb4e.akpm@osdl.org> References: <20060420171857.GA21659@infradead.org> <20060420165927.9968.33912.stgit@warthog.cambridge.redhat.com> <20060420165932.9968.40376.stgit@warthog.cambridge.redhat.com> <22114.1145556402@warthog.cambridge.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dhowells@redhat.com, aviro@redhat.com, sct@redhat.com, nfsv4@linux-nfs.org, steved@redhat.com, linux-kernel@vger.kernel.org, torvalds@osdl.org, linux-cachefs@redhat.com, linux-fsdevel@vger.kernel.org Return-path: To: David Howells In-Reply-To: <22114.1145556402@warthog.cambridge.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfsv4-bounces@linux-nfs.org Errors-To: nfsv4-bounces@linux-nfs.org List-Id: linux-fsdevel.vger.kernel.org David Howells wrote: > > (1) Each AFS or NFS _dentry_ retained in the system pins a file in the > backing cache if it's also cached, whether or not it's open. That would seem to be a great shortcoming in fscache. I guess as memory reclaim reaps the top-level dentries those file*'s will also be freed up, leading to their dentries becoming reclaimable, leading to their inodes being reclaimable. But still. Is it not possible to release those files-pinned-by-dcache when the top-level files are closed?