OSDN Git Service

fs_context flavour for submounts
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 23 Dec 2018 21:25:31 +0000 (16:25 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 Jan 2019 22:44:27 +0000 (17:44 -0500)
commite1a91586d5da6f879b6dd385a2e7227bf1653570
treef7c6869c8307059a95a0c2688a88fecf5493b30e
parent8d0347f6c3a9d4953ddd636a31c6584da082e084
fs_context flavour for submounts

This is an eventual replacement for vfs_submount() uses.  Unlike the
"mount" and "remount" cases, the users of that thing are not in VFS -
they are buried in various ->d_automount() instances and rather than
converting them all at once we introduce the (thankfully small and
simple) infrastructure here and deal with the prospective users in
afs, nfs, etc. parts of the series.

Here we just introduce a new constructor (fs_context_for_submount())
along with the corresponding enum constant to be put into fc->purpose
for those.

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