]> git.ipfire.org Git - people/ms/linux.git/commit - fs/namespace.c
vfs: more mnt_parent cleanups
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 24 Nov 2011 00:34:49 +0000 (19:34 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:52:36 +0000 (22:52 -0500)
commitafac7cba7ed31968a95e181dc25e204e45009ea8
tree282cf7da6bc3915093df622ebfcd39f44f6fd1cd
parentb2dba1af3c4157040303a76d25216b1713d333d0
vfs: more mnt_parent cleanups

a) mount --move is checking that ->mnt_parent is non-NULL before
looking if that parent happens to be shared; ->mnt_parent is never
NULL and it's not even an misspelled !mnt_has_parent()

b) pivot_root open-codes is_path_reachable(), poorly.

c) so does path_is_under(), while we are at it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c
fs/namespace.c
fs/pnode.c
fs/pnode.h