yes, one gear is enough, the back passing through dentry-> parent. take care when you meet the mount point, to support linux βone cable mounts multiple devicesβ ... well, it's easy to encode it, just switch to vfsmnt-> mnt_parent.
BTW: I was often confused why linux is building a mountpoint-linklist listing with the "mnt_parent" field and not the "mnt_child" field, when I write this answer, I seemed to be guessing something.
source share