[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.00.1105301733500.5482@sister.anvils>
Date: Mon, 30 May 2011 17:35:46 -0700 (PDT)
From: Hugh Dickins <hughd@...gle.com>
To: Andrew Morton <akpm@...ux-foundation.org>
cc: Dan Magenheimer <dan.magenheimer@...cle.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: [PATCH 1/14] mm: invalidate_mapping_pages flush cleancache
truncate_inode_pages_range() and invalidate_inode_pages2_range()
call cleancache_flush_inode(mapping) before and after: shouldn't
invalidate_mapping_pages() be doing the same?
Signed-off-by: Hugh Dickins <hughd@...gle.com>
Cc: Dan Magenheimer <dan.magenheimer@...cle.com>
---
mm/truncate.c | 2 ++
1 file changed, 2 insertions(+)
--- linux.orig/mm/truncate.c 2011-05-30 13:56:10.416798124 -0700
+++ linux/mm/truncate.c 2011-05-30 14:08:46.612547848 -0700
@@ -333,6 +333,7 @@ unsigned long invalidate_mapping_pages(s
unsigned long count = 0;
int i;
+ cleancache_flush_inode(mapping);
pagevec_init(&pvec, 0);
while (next <= end &&
pagevec_lookup(&pvec, mapping, next, PAGEVEC_SIZE)) {
@@ -373,6 +374,7 @@ unsigned long invalidate_mapping_pages(s
mem_cgroup_uncharge_end();
cond_resched();
}
+ cleancache_flush_inode(mapping);
return count;
}
EXPORT_SYMBOL(invalidate_mapping_pages);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists