Btrfs: Remove debugging statements from the invalidatepage calls
authorChris Mason <chris.mason@oracle.com>
Mon, 21 Apr 2008 12:52:50 +0000 (08:52 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000 (11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/inode.c

index 46188ee166236c0f240f3107f0f8d2b958b51b02..c829612c797e9460ec20a379f6c6f5edb4366467 100644 (file)
@@ -534,7 +534,7 @@ static void btree_invalidatepage(struct page *page, unsigned long offset)
        extent_invalidatepage(tree, page, offset);
        btree_releasepage(page, GFP_NOFS);
        if (PagePrivate(page)) {
-               printk("2invalidate page cleaning up after releasepage\n");
+               invalidate_extent_lru(tree, page_offset(page), PAGE_CACHE_SIZE);
                ClearPagePrivate(page);
                set_page_private(page, 0);
                page_cache_release(page);
index 347cd85db128bd0a79d811c0bb318cfd7c8d536c..5b1514e58de4ade6757cbfbc746c3b266670f94b 100644 (file)
@@ -2510,6 +2510,7 @@ static int btrfs_releasepage(struct page *page, gfp_t gfp_flags)
        map = &BTRFS_I(page->mapping->host)->extent_tree;
        ret = try_release_extent_mapping(map, tree, page, gfp_flags);
        if (ret == 1) {
+               invalidate_extent_lru(tree, page_offset(page), PAGE_CACHE_SIZE);
                ClearPagePrivate(page);
                set_page_private(page, 0);
                page_cache_release(page);
@@ -2525,7 +2526,7 @@ static void btrfs_invalidatepage(struct page *page, unsigned long offset)
        extent_invalidatepage(tree, page, offset);
        btrfs_releasepage(page, GFP_NOFS);
        if (PagePrivate(page)) {
-               printk("invalidate page cleaning up after releasepage\n");
+               invalidate_extent_lru(tree, page_offset(page), PAGE_CACHE_SIZE);
                ClearPagePrivate(page);
                set_page_private(page, 0);
                page_cache_release(page);