]> git.hungrycats.org Git - linux/commit
[PATCH] hugetlbpage msync() fix
authorAndrew Morton <akpm@osdl.org>
Thu, 3 Jun 2004 01:01:46 +0000 (18:01 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 01:01:46 +0000 (18:01 -0700)
commitdde27822586dd7a89c91c66d11878f8e19e6b823
treebe9b2400e9bb5fddf8b496b8f5b81d030acd4d57
parent0af0d78880a6dc12c569931f1b8cb46a4dcecd59
[PATCH] hugetlbpage msync() fix

From: David Gibson <david@gibson.dropbear.id.au>

Currently, calling msync() on a hugepage area will cause the kernel to blow
up with a bad_page() (at least on ppc64, but I think the problem will exist
on other archs too).  The msync path attempts to walk pagetables which may
not be there, or may have an unusual layout for hugepages.

Lucikly we shouldn't need to do anything for an msync on hugetlbfs beyond
flushing the cache, so this patch should be sufficient to fix the problem.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/msync.c