- Update to 3.3-rc2.
[linux-flexiantxendom0-3.2.10.git] / mm / truncate.c
index a03380a..1f07994 100644 (file)
@@ -52,7 +52,7 @@ void do_invalidatepage(struct page *page, unsigned long offset)
 static inline void truncate_partial_page(struct page *page, unsigned partial)
 {
        zero_user_segment(page, partial, PAGE_CACHE_SIZE);
-       cleancache_invalidate_page(page->mapping, page);
+       cleancache_flush_page(page->mapping, page);
        if (page_has_private(page))
                do_invalidatepage(page, partial);
 }
@@ -213,7 +213,7 @@ void truncate_inode_pages_range(struct address_space *mapping,
        pgoff_t end;
        int i;
 
-       cleancache_invalidate_inode(mapping);
+       cleancache_flush_inode(mapping);
        if (mapping->nrpages == 0)
                return;
 
@@ -292,7 +292,7 @@ void truncate_inode_pages_range(struct address_space *mapping,
                mem_cgroup_uncharge_end();
                index++;
        }
-       cleancache_invalidate_inode(mapping);
+       cleancache_flush_inode(mapping);
        /*
         * Cycle the tree_lock to make sure all __delete_from_page_cache()
         * calls run from page reclaim have finished as well (this handles the
@@ -451,7 +451,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
        int ret2 = 0;
        int did_range_unmap = 0;
 
-       cleancache_invalidate_inode(mapping);
+       cleancache_flush_inode(mapping);
        pagevec_init(&pvec, 0);
        index = start;
        while (index <= end && pagevec_lookup(&pvec, mapping, index,
@@ -507,7 +507,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
                cond_resched();
                index++;
        }
-       cleancache_invalidate_inode(mapping);
+       cleancache_flush_inode(mapping);
        return ret;
 }
 EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range);