[RFC PATCH 0/6] Convert mount_single-using filesystems to fs_context
From: David Howells
Date: Thu Mar 21 2019 - 07:50:30 EST
Hi Al,
Here's a set of patches that convert romfs, cramfs, jffs2 and squashfs to
use the new fs_context struct and replace mount_mtd(). They have
prerequisite commits (such as replacing mount_bdev()) that can be found in
the branch detailed below.
(1) Provide a replacement for mount_mtd() that takes an fs_context to
specify the parameters.
I also put an mtd device pointer into the fs_context struct for use in
the sget_fc() test and set functions plus a destructor because
put_fs_context() can't reach into the mtd module.
(2) Convert romfs.
(3) Convert cramfs.
(4) Convert jffs2.
(5) Get rid of the now-obsolete mount_mtd() function.
(6) Convert squashfs.
These can be found in the following branch:
http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=mount-api-viro
Thanks,
David
---
David Howells (6):
mtd: Provide fs_context-aware mount_mtd() replacement
romfs: Convert to fs_context
cramfs: Convert to fs_context
jffs2: Convert to fs_context
mtd: Kill off mount_mtd()
squashfs: Convert to fs_context
drivers/mtd/mtdcore.h | 1
drivers/mtd/mtdsuper.c | 181 ++++++++++++++++++++++----------------------
fs/cramfs/inode.c | 69 +++++++++--------
fs/fs_context.c | 2
fs/jffs2/fs.c | 21 +++--
fs/jffs2/os-linux.h | 4 -
fs/jffs2/super.c | 172 ++++++++++++++++++++----------------------
fs/romfs/super.c | 46 +++++++----
fs/squashfs/super.c | 100 +++++++++++++-----------
include/linux/fs_context.h | 2
include/linux/mtd/super.h | 6 +
11 files changed, 316 insertions(+), 288 deletions(-)