The patch titled mm: remove_mapping() safeness has been removed from the -mm tree. Its filename is mm-remove_mapping-safeness.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: mm: remove_mapping() safeness From: Nick Piggin <npiggin@xxxxxxx> Some users of remove_mapping had been unsafe. Modify the remove_mapping precondition to ensure the caller has locked the page and obtained the correct mapping. Modify callers to ensure the mapping is the correct one. [hugh@xxxxxxxxxxx: swapper_space fix] Signed-off-by: Nick Piggin <npiggin@xxxxxxx> Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- mm/vmscan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN mm/vmscan.c~mm-remove_mapping-safeness mm/vmscan.c --- a/mm/vmscan.c~mm-remove_mapping-safeness +++ a/mm/vmscan.c @@ -377,8 +377,8 @@ static pageout_t pageout(struct page *pa int remove_mapping(struct address_space *mapping, struct page *page) { - if (!mapping) - return 0; /* truncate got there first */ + BUG_ON(!PageLocked(page)); + BUG_ON(mapping != page_mapping(page)); write_lock_irq(&mapping->tree_lock); @@ -547,7 +547,7 @@ static unsigned long shrink_page_list(st goto free_it; } - if (!remove_mapping(mapping, page)) + if (!mapping || !remove_mapping(mapping, page)) goto keep_locked; free_it: _ Patches currently in -mm which might be from npiggin@xxxxxxx are origin.patch git-block.patch page-invalidation-cleanup.patch mm-micro-optimise-zone_watermark_ok.patch radix-tree-rcu-lockless-readside.patch select_bad_process-cleanup-releasing-check.patch oom-dont-kill-current-when-another-oom-in-progress.patch sched-force-sbin-init-off-isolated-cpus.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html