From 7c8567f61a743a71e8dfa1224cdc20a2cace26ed Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Wed, 25 Jul 2007 19:50:35 -0700 Subject: [PATCH] vps_mm_migrate Use page_cache_xxx in mm/migrate.c Signed-off-by: Christoph Lameter --- mm/migrate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 34d8ada..4395e2b 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -196,7 +196,7 @@ static void remove_file_migration_ptes(struct page *old, struct page *new) struct vm_area_struct *vma; struct address_space *mapping = page_mapping(new); struct prio_tree_iter iter; - pgoff_t pgoff = new->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT); + pgoff_t pgoff = new->index << mapping_order(mapping); if (!mapping) return; -- 1.4.4.4