On Wed, May 28, 2025 at 03:26:22PM -0700, Song Liu wrote: > Introduce a path iterator, which reliably walk a struct path. No, it does not. If you have no external warranty that mount *and* dentry trees are stable, it's not reliable at all. And I'm extremely suspicious regarding the validity of anything that pokes around in mount trees. There is a very good reason struct mount is *not* visible in include/linux/*.h