kernfs: move revalidate to be near lookup
authorIan Kent <raven@themaw.net>
Tue, 15 Jun 2021 10:25:53 +0000 (18:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 15:04:32 +0000 (17:04 +0200)
commitd826e0365199ccc084d6b757c966f4c8ca83d20b
tree33edf6ee191dfe86a75a7def4ed3be78384f3dd6
parent68afbd8459e9c8a86544b5e884041981b837e162
kernfs: move revalidate to be near lookup

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@themaw.net>
Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://lore.kernel.org/r/162375275365.232295.8995526416263659926.stgit@web.messagingengine.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/dir.c