]> git.baikalelectronics.ru Git - kernel.git/commit
new helper: mount_subtree()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Nov 2011 02:43:59 +0000 (21:43 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Nov 2011 03:00:34 +0000 (22:00 -0500)
commit802b3118c11a39a1f4d8f3b284a027db2189f695
tree32b7c4f7c78af47936a604e3f4e13e8e61f834a0
parent08020c163b599c3add52b5329d0ea2320db1ef0d
new helper: mount_subtree()

takes vfsmount and relative path, does lookup within that vfsmount
(possibly triggering automounts) and returns the result as root
of subtree suitable for return by ->mount() (i.e. a reference to
dentry and an active reference to its superblock grabbed, superblock
locked exclusive).

btrfs and nfs switched to it instead of open-coding the sucker.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/super.c
fs/namespace.c
fs/nfs/super.c
include/linux/fs.h