Re: [PATCH v3 bpf-next 1/5] namei: Introduce new helper function path_walk_parent()
From: Tingmao Wang
Date: Tue Jun 10 2025 - 18:35:18 EST
On 6/10/25 23:26, Tingmao Wang wrote:
> [...]
>
> A quick suggestion although I haven't tested anything - maybe we should do
> a special case check for IS_ROOT inside the
> if (unlikely(path->dentry == path->mnt->mnt_root))
> ? Before "path_put(path);", if IS_ROOT(p.dentry) then we just path_get(p)
^^^ sorry I meant put
> and return false.