]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new mount API
authorDavid Howells <dhowells@redhat.com>
Mon, 25 Mar 2019 16:38:31 +0000 (16:38 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Sep 2019 01:05:34 +0000 (21:05 -0400)
commitb6448f7b043ea70855835e60802d5be49688b5f0
tree140effa4ef1e1ff107ec8028d7c55862191264e6
parente6dbb6a71a1456ecf507195a2a61166967e8ab11
vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new mount API

Convert the ramfs, shmem, tmpfs, devtmpfs and rootfs filesystems to the new
internal mount API as the old one will be obsoleted and removed.  This
allows greater flexibility in communication of mount parameters between
userspace, the VFS and the filesystem.

See Documentation/filesystems/mount_api.txt for more information.

Note that tmpfs is slightly tricky as it can contain embedded commas, so it
can't be trivially split up using strsep() to break on commas in
generic_parse_monolithic().  Instead, tmpfs has to supply its own generic
parser.

However, if tmpfs changes, then devtmpfs and rootfs, which are wrappers
around tmpfs or ramfs, must change too - and thus so must ramfs, so these
had to be converted also.

[AV: rewritten]

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Hugh Dickins <hughd@google.com>
cc: linux-mm@kvack.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/base/devtmpfs.c
fs/ramfs/inode.c
include/linux/ramfs.h
include/linux/shmem_fs.h
init/do_mounts.c
mm/shmem.c