summaryrefslogtreecommitdiffstats
path: root/fs/proc/meminfo.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh.dickins@tiscali.co.uk>2009-10-27 00:49:31 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-10-29 15:39:24 +0100
commit92f7ba70eecf4da8264a767b181cc2090f62d4ad (patch)
treec8e0fe4239efcf114a01896e3836b30cddf0ba1b /fs/proc/meminfo.c
parentcpufreq: add cpufreq_get() stub for CONFIG_CPU_FREQ=n (diff)
downloadlinux-92f7ba70eecf4da8264a767b181cc2090f62d4ad.tar.xz
linux-92f7ba70eecf4da8264a767b181cc2090f62d4ad.zip
hwpoison: fix oops on ksm pages
Memory failure on a KSM page currently oopses on its NULL anon_vma in page_lock_anon_vma(): that may not be much worse than the consequence of ignoring it, but it is better to be consistent with how ZERO_PAGE and hugetlb pages and other awkward cases are treated. Just skip it. We could fix it for 2.6.32 at the KSM end, by putting a dummy anon_vma pointer in there; but that would get harder next time, when KSM will put a pointer to something else there (and I'm not currently planning to do any work to open that up to memory_failure). So I would prefer this simple PageKsm test, until the other exceptions are handled. Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/meminfo.c')
0 files changed, 0 insertions, 0 deletions