X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=init%2Fdo_mounts.c;h=21d065a55ad884996a8f4fd8527da14db752d4a3;hb=bab2fb9d6b675df589d79a2a12b30d1305ab4511;hp=5dfd30b13f48571835c766ec7c9df162feb05fb7;hpb=c266ae774effb858266e64b0dfd7018e58278523;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/init/do_mounts.c b/init/do_mounts.c index 5dfd30b..21d065a 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -510,7 +510,10 @@ struct file_system_type rootfs_fs_type = { void __init init_rootfs(void) { - if (IS_ENABLED(CONFIG_TMPFS) && !saved_root_name[0] && - (!root_fs_names || strstr(root_fs_names, "tmpfs"))) - is_tmpfs = true; + if (IS_ENABLED(CONFIG_TMPFS)) { + if (!saved_root_name[0] && !root_fs_names) + is_tmpfs = true; + else if (root_fs_names && !!strstr(root_fs_names, "tmpfs")) + is_tmpfs = true; + } }