From: Christoph Lameter Date: Fri, 23 Jun 2006 09:03:29 +0000 (-0700) Subject: [PATCH] page migration cleanup: drop nr_refs in remove_references() X-Git-Tag: v2.6.18-rc1~1081^2~182 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b5c7120e2154239837fad5e3c7b7b781092b19c;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed