aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 319a0c7a4a58..8624f3e88036 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2634,6 +2634,7 @@ struct extent_buffer *alloc_extent_buffer(struct extent_io_tree *tree,
2634 if (eb) { 2634 if (eb) {
2635 atomic_inc(&eb->refs); 2635 atomic_inc(&eb->refs);
2636 spin_unlock(&tree->buffer_lock); 2636 spin_unlock(&tree->buffer_lock);
2637 mark_page_accessed(eb->first_page);
2637 return eb; 2638 return eb;
2638 } 2639 }
2639 spin_unlock(&tree->buffer_lock); 2640 spin_unlock(&tree->buffer_lock);
@@ -2713,6 +2714,9 @@ struct extent_buffer *find_extent_buffer(struct extent_io_tree *tree,
2713 atomic_inc(&eb->refs); 2714 atomic_inc(&eb->refs);
2714 spin_unlock(&tree->buffer_lock); 2715 spin_unlock(&tree->buffer_lock);
2715 2716
2717 if (eb)
2718 mark_page_accessed(eb->first_page);
2719
2716 return eb; 2720 return eb;
2717} 2721}
2718EXPORT_SYMBOL(find_extent_buffer); 2722EXPORT_SYMBOL(find_extent_buffer);