]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/madvise.c
HWPOISON: Turn ref argument into flags argument
[net-next-2.6.git] / mm / madvise.c
index 18970aec0d2f855800467a2bbe7a41033d407773..6ca34f0cd4aaa74f07dab4208880b20345e423cc 100644 (file)
@@ -237,7 +237,7 @@ static int madvise_hwpoison(unsigned long start, unsigned long end)
                printk(KERN_INFO "Injecting memory failure for page %lx at %lx\n",
                       page_to_pfn(p), start);
                /* Ignore return value for now */
-               __memory_failure(page_to_pfn(p), 0, 1);
+               __memory_failure(page_to_pfn(p), 0, MF_COUNT_INCREASED);
        }
        return ret;
 }