]> Git Repo - linux.git/commit - fs/kernfs/dir.c
kernfs: move revalidate to be near lookup
authorIan Kent <[email protected]>
Tue, 15 Jun 2021 10:25:53 +0000 (18:25 +0800)
committerGreg Kroah-Hartman <[email protected]>
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 <[email protected]>
Reviewed-by: Miklos Szeredi <[email protected]>
Link: https://lore.kernel.org/r/162375275365.232295.8995526416263659926.stgit@web.messagingengine.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
fs/kernfs/dir.c
This page took 0.056854 seconds and 4 git commands to generate.