Re: [PATCH 10/13] nfsd: allow filecache to hold S_IFDIR files

From: NeilBrown

Date: Tue Oct 14 2025 - 01:45:16 EST


On Tue, 14 Oct 2025, Jeff Layton wrote:
> The filecache infrastructure will only handle S_ISREG files at the
> moment. Plumb a "type" variable into nfsd_file_do_acquire and have all
> of the existing callers set it to S_ISREG. Add a new

S_IFREG (s/IS/IF/) :-)

Otherwise looks good.


> nfsd_file_acquire_dir() wrapper that we can then call to request a
> nfsd_file that holds a directory open.
>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>

NeilBrown