[RFC PATCH bpf-next 05/12] namei: make vfs_walk_ancestors() stepwise

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Oct 6 00:30:32 UTC 2026


> Restructure the walk into a stepwise engine - vfs_walk_start(),
> vfs_walk_next(), vfs_walk_end() - private to fs/, so an iterating
> consumer (BPF) can drive it with every step and invariant staying in
> namei.c.  vfs_walk_ancestors() becomes a loop over it, preserving the
> callback contract.
> 
> The position's flags move into the walk state, where the next step
> needs them anyway: stepping off a disconnected position resumes at the
> root of its mount.
> 
> Signed-off-by: Justin Suess <utilityemal77 at gmail.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261006002020.2890858-1-utilityemal77@gmail.com?part=5




More information about the Linux-security-module-archive mailing list