]> git.baikalelectronics.ru Git - kernel.git/commit
new helpers: vfs_create_mount(), fc_mount()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 4 Nov 2018 11:48:34 +0000 (06:48 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 Jan 2019 22:44:24 +0000 (17:44 -0500)
commiteeae6e22642dceb93faef584f1b541779ee98d87
treed433855ae4023d71572bfa875509a3a8687f145e
parent9927a6d5d1dd35ef0d0a39722a2f41a4a776c7a3
new helpers: vfs_create_mount(), fc_mount()

Create a new helper, vfs_create_mount(), that creates a detached vfsmount
object from an fs_context that has a superblock attached to it.

Almost all uses will be paired with immediately preceding vfs_get_tree();
add a helper for such combination.

Switch vfs_kern_mount() to use this.

NOTE: mild behaviour change; passing NULL as 'device name' to
something like procfs will change /proc/*/mountstats - "device none"
instead on "no device".  That is consistent with /proc/mounts et.al.

[do'h - EXPORT_SYMBOL_GPL slipped in by mistake; removed]
[AV -- remove confused comment from vfs_create_mount()]
[AV -- removed the second argument]

Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
include/linux/mount.h