The patch titled Subject: ramfs: fix mount source show for ramfs has been added to the -mm tree. Its filename is ramfs-fix-mount-source-show-for-ramfs.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/ramfs-fix-mount-source-show-for-ramfs.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/ramfs-fix-mount-source-show-for-ramfs.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: yangerkun <yangerkun@xxxxxxxxxx> Subject: ramfs: fix mount source show for ramfs ramfs_parse_param does not parse the key "source", and will convert -ENOPARAM to 0. This will skip calling vfs_parse_fs_param_source() in vfs_parse_fs_param(), which leads to always presenting "none" as the mount source for ramfs. Fix it by parsing "source" in ramfs_parse_param(). Link: https://lkml.kernel.org/r/20210811122811.2288041-1-yangerkun@xxxxxxxxxx Signed-off-by: yangerkun <yangerkun@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Yu Kuai <yukuai3@xxxxxxxxxx> Cc: ErKun Yang <yangerkun@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ramfs/inode.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/fs/ramfs/inode.c~ramfs-fix-mount-source-show-for-ramfs +++ a/fs/ramfs/inode.c @@ -202,6 +202,10 @@ static int ramfs_parse_param(struct fs_c struct ramfs_fs_info *fsi = fc->s_fs_info; int opt; + opt = vfs_parse_fs_param_source(fc, param); + if (opt != -ENOPARAM) + return opt; + opt = fs_parse(fc, ramfs_fs_parameters, param, &result); if (opt < 0) { /* _ Patches currently in -mm which might be from yangerkun@xxxxxxxxxx are ramfs-fix-mount-source-show-for-ramfs.patch