]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/pnode.c
vfs: more mnt_parent cleanups
[karo-tx-linux.git] / fs / pnode.c
index f1cd958b92e5678044d7fd1ca1b07801b780ef72..4d5a06ea57a28bff158b9c0d523434beb7140522 100644 (file)
@@ -28,21 +28,6 @@ static inline struct vfsmount *next_slave(struct vfsmount *p)
        return list_entry(p->mnt_slave.next, struct vfsmount, mnt_slave);
 }
 
-/*
- * Return true if path is reachable from root
- *
- * namespace_sem is held, and mnt is attached
- */
-static bool is_path_reachable(struct vfsmount *mnt, struct dentry *dentry,
-                        const struct path *root)
-{
-       while (mnt != root->mnt && mnt_has_parent(mnt)) {
-               dentry = mnt->mnt_mountpoint;
-               mnt = mnt->mnt_parent;
-       }
-       return mnt == root->mnt && is_subdir(dentry, root->dentry);
-}
-
 static struct vfsmount *get_peer_under_root(struct vfsmount *mnt,
                                            struct mnt_namespace *ns,
                                            const struct path *root)