Skip to content
Snippets Groups Projects
Commit b2dba1af authored by Al Viro's avatar Al Viro
Browse files

vfs: new internal helper: mnt_has_parent(mnt)


vfsmounts have ->mnt_parent pointing either to a different vfsmount
or to itself; it's never NULL and termination condition in loops
traversing the tree towards root is mnt == mnt->mnt_parent.  At least
one place (see the next patch) is confused about what's going on;
let's add an explicit helper checking it right way and use it in
all places where we need it.  Not that there had been too many,
but...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent aa9c0e07
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment