]> git.baikalelectronics.ru Git - kernel.git/commit
pagemap: fix large pages in pagemap
authorDave Hansen <dave@linux.vnet.ibm.com>
Thu, 12 Jun 2008 22:21:48 +0000 (15:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Jun 2008 01:05:41 +0000 (18:05 -0700)
commitaa8ec553e7cd19aa12dbcab6a9a877f6c8e25571
tree2c3348eb300fdd910df9e012882bd3d2f263a390
parent1f707bf06a647e6d48289026169733ea70f6ca6b
pagemap: fix large pages in pagemap

We were walking right into huge page areas in the pagemap walker, and
calling the pmds pmd_bad() and clearing them.

That leaked huge pages.  Bad.

This patch at least works around that for now.  It ignores huge pages in
the pagemap walker for the time being, and won't leak those pages.

Signed-off-by: Dave Hansen <dave@linux.vnet.ibm.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/task_mmu.c