vfs: Add a single-or-reconfig keying to vfs_get_super()
authorDavid Howells <dhowells@redhat.com>
Thu, 21 Mar 2019 09:22:36 +0000 (09:22 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 5 Sep 2019 18:34:23 +0000 (14:34 -0400)
commit43ce4c1feadbc84c772518a2d1974f6ba1b15089
treee3bc42b51b6c0ca84b4a7c99f676999ed0bf892f
parent0f071004109d9c8de7023b9a64fa2ba3fa87cbed
vfs: Add a single-or-reconfig keying to vfs_get_super()

Add an additional keying mode to vfs_get_super() to indicate that only a
single superblock should exist in the system, and that, if it does, further
mounts should invoke reconfiguration upon it.

This allows mount_single() to be replaced.

[Fix by Eric Biggers folded in]

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