]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ramfs: fix mount source show for ramfs
authoryangerkun <yangerkun@huawei.com>
Tue, 24 Aug 2021 00:00:00 +0000 (10:00 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:54 +0000 (09:34 +1000)
commit069062768f8458dbec1d0bdb5bd0acc35a2a9c91
tree51e840b57989fb9b5d071fd901ec089d2140006a
parent4fbc3ac1e771e1388ef947579012d3ec3bcafb27
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@huawei.com
Signed-off-by: yangerkun <yangerkun@huawei.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Yu Kuai <yukuai3@huawei.com>
Cc: ErKun Yang <yangerkun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
fs/ramfs/inode.c