Re: [patch 05/19] Use page_cache_xxx in mm/rmap.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Wednesday, November 28, 2007 - 8:30 pm

On Thu, 29 Nov 2007, David Chinner wrote:


Yes that is much simpler


rmap: simplify page_referenced_file use of page cache inlines

Signed-off-by: Christoph Lameter <clameter@sgi.com>

---
 mm/rmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: mm/mm/rmap.c
===================================================================
--- mm.orig/mm/rmap.c	2007-11-28 19:28:45.689883608 -0800
+++ mm/mm/rmap.c	2007-11-28 19:29:35.090382690 -0800
@@ -350,7 +350,7 @@ static int page_referenced_file(struct p
 {
 	unsigned int mapcount;
 	struct address_space *mapping = page->mapping;
-	pgoff_t pgoff = page->index << (page_cache_shift(mapping) - PAGE_SHIFT);
+	pgoff_t pgoff = page->index << mapping_order(mapping);
 	struct vm_area_struct *vma;
 	struct prio_tree_iter iter;
 	int referenced = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 05/19] Use page_cache_xxx in mm/rmap.c, Christoph Lameter, (Wed Nov 28, 6:10 pm)
Re: [patch 05/19] Use page_cache_xxx in mm/rmap.c, David Chinner, (Wed Nov 28, 8:19 pm)
Re: [patch 05/19] Use page_cache_xxx in mm/rmap.c, Christoph Lameter, (Wed Nov 28, 8:30 pm)
Re: [patch 05/19] Use page_cache_xxx in mm/rmap.c, David Chinner, (Wed Nov 28, 8:59 pm)
Re: [patch 05/19] Use page_cache_xxx in mm/rmap.c, Christoph Lameter, (Wed Nov 28, 9:09 pm)
Re: [patch 05/19] Use page_cache_xxx in mm/rmap.c, David Chinner, (Wed Nov 28, 9:11 pm)