diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 8fb6dc25e7a5..60852ada658e 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2670,7 +2670,6 @@ static int __btrfs_releasepage(struct page *page, gfp_t gfp_flags) | |||
2670 | map = &BTRFS_I(page->mapping->host)->extent_tree; | 2670 | map = &BTRFS_I(page->mapping->host)->extent_tree; |
2671 | ret = try_release_extent_mapping(map, tree, page, gfp_flags); | 2671 | ret = try_release_extent_mapping(map, tree, page, gfp_flags); |
2672 | if (ret == 1) { | 2672 | if (ret == 1) { |
2673 | invalidate_extent_lru(tree, page_offset(page), PAGE_CACHE_SIZE); | ||
2674 | ClearPagePrivate(page); | 2673 | ClearPagePrivate(page); |
2675 | set_page_private(page, 0); | 2674 | set_page_private(page, 0); |
2676 | page_cache_release(page); | 2675 | page_cache_release(page); |
@@ -2721,8 +2720,6 @@ static void btrfs_invalidatepage(struct page *page, unsigned long offset) | |||
2721 | 2720 | ||
2722 | ClearPageChecked(page); | 2721 | ClearPageChecked(page); |
2723 | if (PagePrivate(page)) { | 2722 | if (PagePrivate(page)) { |
2724 | invalidate_extent_lru(tree, page_offset(page), | ||
2725 | PAGE_CACHE_SIZE); | ||
2726 | ClearPagePrivate(page); | 2723 | ClearPagePrivate(page); |
2727 | set_page_private(page, 0); | 2724 | set_page_private(page, 0); |
2728 | page_cache_release(page); | 2725 | page_cache_release(page); |