aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/disk-io.c2
-rw-r--r--fs/btrfs/inode.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 46188ee16623..c829612c797e 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -534,7 +534,7 @@ static void btree_invalidatepage(struct page *page, unsigned long offset)
534 extent_invalidatepage(tree, page, offset); 534 extent_invalidatepage(tree, page, offset);
535 btree_releasepage(page, GFP_NOFS); 535 btree_releasepage(page, GFP_NOFS);
536 if (PagePrivate(page)) { 536 if (PagePrivate(page)) {
537 printk("2invalidate page cleaning up after releasepage\n"); 537 invalidate_extent_lru(tree, page_offset(page), PAGE_CACHE_SIZE);
538 ClearPagePrivate(page); 538 ClearPagePrivate(page);
539 set_page_private(page, 0); 539 set_page_private(page, 0);
540 page_cache_release(page); 540 page_cache_release(page);
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 347cd85db128..5b1514e58de4 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2510,6 +2510,7 @@ static int btrfs_releasepage(struct page *page, gfp_t gfp_flags)
2510 map = &BTRFS_I(page->mapping->host)->extent_tree; 2510 map = &BTRFS_I(page->mapping->host)->extent_tree;
2511 ret = try_release_extent_mapping(map, tree, page, gfp_flags); 2511 ret = try_release_extent_mapping(map, tree, page, gfp_flags);
2512 if (ret == 1) { 2512 if (ret == 1) {
2513 invalidate_extent_lru(tree, page_offset(page), PAGE_CACHE_SIZE);
2513 ClearPagePrivate(page); 2514 ClearPagePrivate(page);
2514 set_page_private(page, 0); 2515 set_page_private(page, 0);
2515 page_cache_release(page); 2516 page_cache_release(page);
@@ -2525,7 +2526,7 @@ static void btrfs_invalidatepage(struct page *page, unsigned long offset)
2525 extent_invalidatepage(tree, page, offset); 2526 extent_invalidatepage(tree, page, offset);
2526 btrfs_releasepage(page, GFP_NOFS); 2527 btrfs_releasepage(page, GFP_NOFS);
2527 if (PagePrivate(page)) { 2528 if (PagePrivate(page)) {
2528 printk("invalidate page cleaning up after releasepage\n"); 2529 invalidate_extent_lru(tree, page_offset(page), PAGE_CACHE_SIZE);
2529 ClearPagePrivate(page); 2530 ClearPagePrivate(page);
2530 set_page_private(page, 0); 2531 set_page_private(page, 0);
2531 page_cache_release(page); 2532 page_cache_release(page);