Merge branch 'hwpoison' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Aug 2010 17:15:10 +0000 (10:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Aug 2010 17:15:10 +0000 (10:15 -0700)
* 'hwpoison' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-mce-2.6:
  hugetlb: add missing unlock in avoidcopy path in hugetlb_cow()
  hwpoison: rename CONFIG
  HWPOISON, hugetlb: support hwpoison injection for hugepage
  HWPOISON, hugetlb: detect hwpoison in hugetlb code
  HWPOISON, hugetlb: isolate corrupted hugepage
  HWPOISON, hugetlb: maintain mce_bad_pages in handling hugepage error
  HWPOISON, hugetlb: set/clear PG_hwpoison bits on hugepage
  HWPOISON, hugetlb: enable error handling path for hugepage
  hugetlb, rmap: add reverse mapping for hugepage
  hugetlb: move definition of is_vm_hugetlb_page() to hugepage_inline.h

Fix up trivial conflicts in mm/memory-failure.c

1  2 
include/linux/pagemap.h
include/linux/rmap.h
mm/hugetlb.c
mm/memory-failure.c
mm/rmap.c

Simple merge
Simple merge
diff --cc mm/hugetlb.c
index b61d2db9f34e6cfeff5f2dbe040bbf84a8c30ee4,303fb0c02364c3a5422db9163e1d0aca4b445e95..cc5be788a39fe132c72cbc1d2fb1c03f71708575
@@@ -2355,11 -2400,10 +2403,13 @@@ retry_avoidcopy
                huge_ptep_clear_flush(vma, address, ptep);
                set_huge_pte_at(mm, address, ptep,
                                make_huge_pte(vma, new_page, 1));
+               page_remove_rmap(old_page);
+               hugepage_add_anon_rmap(new_page, vma, address);
                /* Make the old page be freed below */
                new_page = old_page;
 +              mmu_notifier_invalidate_range_end(mm,
 +                      address & huge_page_mask(h),
 +                      (address & huge_page_mask(h)) + huge_page_size(h));
        }
        page_cache_release(new_page);
        page_cache_release(old_page);
index 6b44e52cacaa19857de7ba08af0469492dbeb2db,d0b420aba7266e23026293fd47156decfec760eb..9c26eeca13425886690cddaf6dd45954fd3f0097
@@@ -45,7 -45,7 +45,8 @@@
  #include <linux/page-isolation.h>
  #include <linux/suspend.h>
  #include <linux/slab.h>
 +#include <linux/swapops.h>
+ #include <linux/hugetlb.h>
  #include "internal.h"
  
  int sysctl_memory_failure_early_kill __read_mostly = 0;
diff --cc mm/rmap.c
Simple merge