Re: [PATCH 3/7] FS-Cache: Avoid ENFILE checking for kernel-specific open files

Andrew Morton
2006-04-21T00:12:28Z

David Howells <dhowells@redhat.com> 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?