]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/migrate.c
[PATCH] page migration cleanup: drop nr_refs in remove_references()
authorChristoph Lameter <clameter@sgi.com>
Fri, 23 Jun 2006 09:03:29 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:50 +0000 (07:42 -0700)
commit5b5c7120e2154239837fad5e3c7b7b781092b19c
tree733d5e4268a79abb320316d98c15b822f9f55a15
parente7340f73307abed9283d0a07570d06e228c205dd
[PATCH] page migration cleanup: drop nr_refs in remove_references()

Drop nr_refs parameter from migrate_page_remove_references()

The nr_refs parameter is not really useful since the number of remaining
references is always

1 for anonymous pages without a mapping
2 for pages with a mapping
3 for pages with a mapping and PagePrivate set.

Remove the early check for the number of references since we are checking
page_mapcount() earlier.  Ultimately only the refcount matters after the
tree_lock has been obtained.

Signed-off-by: Christoph Lameter <clameter@sgi.coim>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/migrate.c