From: Al Viro Date: Thu, 24 Nov 2011 00:26:23 +0000 (-0500) Subject: vfs: new internal helper: mnt_has_parent(mnt) X-Git-Tag: v3.3-rc1~170^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2dba1af3c4157040303a76d25216b1713d333d0;p=pandora-kernel.git 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: Al Viro --- Reading git-diff-tree failed