The patch titled Subject: initramfs-clean-old-path-before-creating-a-hardlink-fix has been removed from the -mm tree. Its filename was initramfs-clean-old-path-before-creating-a-hardlink-fix.patch This patch was dropped because it was folded into initramfs-clean-old-path-before-creating-a-hardlink.patch ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: initramfs-clean-old-path-before-creating-a-hardlink-fix Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx> Cc: Li Zhijian <lizhijian@xxxxxxxxxxxxxx> Cc: Li Zhijian <zhijianx.li@xxxxxxxxx> Cc: Philip Li <philip.li@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- init/initramfs.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) --- a/init/initramfs.c~initramfs-clean-old-path-before-creating-a-hardlink-fix +++ a/init/initramfs.c @@ -291,7 +291,17 @@ static int __init do_reset(void) return 1; } -static void __init clean_path(char *path, umode_t fmode); +static void __init clean_path(char *path, umode_t fmode) +{ + struct kstat st; + + if (!vfs_lstat(path, &st) && (st.mode ^ fmode) & S_IFMT) { + if (S_ISDIR(st.mode)) + ksys_rmdir(path); + else + ksys_unlink(path); + } +} static int __init maybe_link(void) { @@ -305,18 +315,6 @@ static int __init maybe_link(void) return 0; } -static void __init clean_path(char *path, umode_t fmode) -{ - struct kstat st; - - if (!vfs_lstat(path, &st) && (st.mode ^ fmode) & S_IFMT) { - if (S_ISDIR(st.mode)) - ksys_rmdir(path); - else - ksys_unlink(path); - } -} - static __initdata int wfd; static int __init do_name(void) _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are initramfs-clean-old-path-before-creating-a-hardlink.patch arm-arch-arm-include-asm-pageh-needs-personalityh.patch ocfs2-clear-zero-in-unaligned-direct-io-checkpatch-fixes.patch mm.patch mm-slab-remove-unnecessary-unlikely-fix.patch mm-slub-record-final-state-of-slub-action-in-deactivate_slab-fix.patch mm-slub-improve-performance-by-skipping-checked-node-in-get_any_partial-fix.patch mm-page_owner-clamp-read-count-to-page_size-fix.patch mm-hotplug-optimize-clear_hwpoisoned_pages-fix.patch mm-ksm-do-not-block-on-page-lock-when-searching-stable-tree-fix.patch mm-memory_hotplug-print-reason-for-the-offlining-failure-fix.patch mm-memory_hotplug-be-more-verbose-for-memory-offline-failures-fix.patch mm-convert-totalram_pages-and-totalhigh_pages-variables-to-atomic-checkpatch-fixes.patch mm-page_alloc-free-order-0-pages-through-pcp-in-page_frag_free-fix.patch memory_hotplug-free-pages-as-higher-order-fix.patch memory_hotplug-free-pages-as-higher-order-fix-fix.patch fs-epoll-deal-with-wait_queue-only-once-fix.patch autofs-improve-ioctl-sbi-checks-fix.patch exec-separate-mm_anonpages-and-rlimit_stack-accounting-checkpatch-fixes.patch ipc-allow-boot-time-extension-of-ipcmni-from-32k-to-8m-checkpatch-fixes.patch linux-next-git-rejects.patch scripts-atomic-check-atomicssh-dont-assume-that-scripts-are-executable.patch mm-replace-all-open-encodings-for-numa_no_node-fix.patch mm-convert-pg_balloon-to-pg_offline-fix.patch fs-remove-caller-signal_pending-branch-predictions-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.patch