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.