linux: update to 4.14.24
[openadk.git] / target / linux / patches / 4.14.24 / initramfs-nosizelimit.patch
blob0e524c1d987f9695704c1188dc17ee0bee5a127b
1 diff -Nur linux-4.14.24.orig/init/do_mounts.c linux-4.14.24/init/do_mounts.c
2 --- linux-4.14.24.orig/init/do_mounts.c 2018-03-03 10:24:39.000000000 +0100
3 +++ linux-4.14.24/init/do_mounts.c 2018-03-08 02:32:01.136927457 +0100
4 @@ -604,6 +604,7 @@
7 static bool is_tmpfs;
8 +static char tmpfs_rootflags[] = "nr_blocks=0,nr_inodes=0";
9 static struct dentry *rootfs_mount(struct file_system_type *fs_type,
10 int flags, const char *dev_name, void *data)
12 @@ -616,6 +617,9 @@
13 if (IS_ENABLED(CONFIG_TMPFS) && is_tmpfs)
14 fill = shmem_fill_super;
16 + if (is_tmpfs)
17 + data = tmpfs_rootflags;
19 return mount_nodev(fs_type, flags, data, fill);