From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <20071129011145.875383656@sgi.com> References: <20071129011052.866354847@sgi.com> Date: Wed, 28 Nov 2007 17:10:59 -0800 From: Christoph Lameter Subject: [patch 07/19] Use page_cache_xxx in mm/migrate.c Content-Disposition: inline; filename=0008-Use-page_cache_xxx-in-mm-migrate.c.patch Sender: owner-linux-mm@kvack.org Return-Path: To: akpm@linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , Mel Gorman , William Lee Irwin III , David Chinner , Jens Axboe , Badari Pulavarty , Maxim Levitsky , Fengguang Wu , swin wang , totty.lu@gmail.com, hugh@veritas.com, joern@lazybastard.org List-ID: Use page_cache_xxx in mm/migrate.c Signed-off-by: Christoph Lameter --- mm/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: mm/mm/migrate.c =================================================================== --- mm.orig/mm/migrate.c 2007-11-28 12:27:32.184464256 -0800 +++ mm/mm/migrate.c 2007-11-28 14:10:49.200977227 -0800 @@ -197,7 +197,7 @@ static void remove_file_migration_ptes(s 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; -- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org