Re: [PATCH v2] selftests: cover kernfs dentry revalidation
From: Christian Brauner
Date: Fri Sep 04 2026 - 04:29:19 EST
On Tue, 01 Sep 2026 18:40:50 -0700, Shakeel Butt wrote:
> kernfs_test only checked two xattr calls. It did not touch the part of
> kernfs that userspace hits most: the dentry cache.
>
> The kernel adds and removes kernfs nodes on its own, with no VFS call
> behind it, and removal cannot always unhash the dentries that are
> already cached. So ->d_revalidate() is what keeps the cache honest,
> let's add tests for it.
>
> [...]
Applied to the vfs-7.4.kernfs branch of the vfs/vfs.git tree.
Patches in the vfs-7.4.kernfs branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.4.kernfs
[1/1] selftests: cover kernfs dentry revalidation
https://git.kernel.org/vfs/vfs/c/c38b381d2027