Re: [PATCH v6 1/7] kernfs: move revalidate to be near lookup

From: Miklos Szeredi
Date: Fri Jun 11 2021 - 08:47:09 EST


On Wed, 9 Jun 2021 at 10:49, Ian Kent <raven@xxxxxxxxxx> wrote:
>
> While the dentry operation kernfs_dop_revalidate() is grouped with
> dentry type functions it also has a strong affinity to the inode
> operation ->lookup().
>
> It makes sense to locate this function near to kernfs_iop_lookup()
> because we will be adding VFS negative dentry caching to reduce path
> lookup overhead for non-existent paths.
>
> There's no functional change from this patch.
>
> Signed-off-by: Ian Kent <raven@xxxxxxxxxx>

Reviewed-by: Miklos Szeredi <mszeredi@xxxxxxxxxx>