The patch titled Subject: revert "initramfs: cleanup incomplete rootfs" has been added to the -mm tree. Its filename is revert-initramfs-cleanup-incomplete-rootfs.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/revert-initramfs-cleanup-incomplete-rootfs.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/revert-initramfs-cleanup-incomplete-rootfs.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: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: revert "initramfs: cleanup incomplete rootfs" Revert ff1522bb7d9845 ("initramfs: cleanup incomplete rootfs"). Andy reports : This breaks my setup where I have U-boot provided more size of initramfs : than needed. This allows a bit of flexibility to increase or decrease : initramfs compressed image without taking care of bootloader. The proper : solution is to do this if we sure that we didn't get enough memory, : otherwise I can't consider the error fatal to clean up rootfs. Fixes: ff1522bb7d9845 ("initramfs: cleanup incomplete rootfs") Reported-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx> Cc: David Engraf <david.engraf@xxxxxxxxx> Cc: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Philippe Ombredanne <pombredanne@xxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- init/initramfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/init/initramfs.c~revert-initramfs-cleanup-incomplete-rootfs +++ a/init/initramfs.c @@ -550,6 +550,7 @@ skip: initrd_end = 0; } +#ifdef CONFIG_BLK_DEV_RAM #define BUF_SIZE 1024 static void __init clean_rootfs(void) { @@ -596,6 +597,7 @@ static void __init clean_rootfs(void) ksys_close(fd); kfree(buf); } +#endif static int __init populate_rootfs(void) { @@ -638,10 +640,8 @@ static int __init populate_rootfs(void) printk(KERN_INFO "Unpacking initramfs...\n"); err = unpack_to_rootfs((char *)initrd_start, initrd_end - initrd_start); - if (err) { + if (err) printk(KERN_EMERG "Initramfs unpacking failed: %s\n", err); - clean_rootfs(); - } free_initrd(); #endif } _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are revert-initramfs-cleanup-incomplete-rootfs.patch ocfs2-clear-zero-in-unaligned-direct-io-checkpatch-fixes.patch mm.patch mm-slub-introduce-slab_warn_on_error-fix.patch mm-page_allocc-memory_hotplug-free-pages-as-higher-order-v11-fix.patch mm-convert-pg_balloon-to-pg_offline-fix.patch mm-reuse-only-pte-mapped-ksm-page-in-do_wp_page-fix.patch mm-swap-check-if-swap-backing-device-is-congested-or-not-fix.patch mm-proportional-memorylowmin-reclaim-checkpatch-fixes.patch mm-oom-remove-prefer-children-over-parent-heuristic-checkpatch-fixes.patch mm-hmm-improve-driver-api-to-work-and-wait-over-a-range-fix-fix.patch mm-add-probe_user_read-fix.patch mm-memcontrol-expose-thp-events-on-a-per-memcg-basis-fix.patch mm-maintain-randomization-of-page-free-lists-checkpatch-fixes.patch filemap-kill-page_cache_read-usage-in-filemap_fault-fix.patch filemap-drop-the-mmap_sem-for-all-blocking-operations-checkpatch-fixes.patch ipc-allow-boot-time-extension-of-ipcmni-from-32k-to-8m-checkpatch-fixes.patch linux-next-rejects.patch linux-next-git-rejects.patch scripts-atomic-check-atomicssh-dont-assume-that-scripts-are-executable.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.patch