page migration: fix NR_FILE_PAGES accounting
authorChristoph Lameter <clameter@sgi.com>
Mon, 23 Apr 2007 21:41:09 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 24 Apr 2007 15:23:08 +0000 (08:23 -0700)
commit0e8c7d0fd5b4999675c7d5cd95d0eb7106b756b3
tree10b3236df34daab7420408ce88d80f09cfcdf99c
parent10ccaf4b7121fb839442be7e079baa8fd0b28caf
page migration: fix NR_FILE_PAGES accounting

NR_FILE_PAGES must be accounted for depending on the zone that the page
belongs to.  If we replace the page in the radix tree then we may have to
shift the count to another zone.

Suggested-by: Ethan Solomita <solo@google.com>
Eventually-typed-in-by: Christoph Lameter <clameter@sgi.com>
Cc: Martin Bligh <mbligh@mbligh.org>
Cc: <stable@kernel.org>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/migrate.c