summary refs log tree commit diff
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2012-03-07 16:20:05 -0500
committerChris Mason <chris.mason@oracle.com>2012-03-26 16:51:07 -0400
commit4f2de97acee6532b36dd6e995b858343771ad126 (patch)
tree240ee16e76f2f2e4850e6fe2e90174e7cd794a9b /fs/btrfs/extent_io.h
parent727011e07cbdf87772fcc1999cccd15cc915eb62 (diff)
downloadlinux-4f2de97acee6532b36dd6e995b858343771ad126.tar.gz
Btrfs: set page->private to the eb
We spend a lot of time looking up extent buffers from pages when we could just
store the pointer to the eb the page is associated with in page->private.  This
patch does just that, and it makes things a little simpler and reduces a bit of
CPU overhead involved with doing metadata IO.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 4e38a3d9631a..83e432da2e26 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -127,6 +127,7 @@ struct extent_buffer {
 	unsigned long map_start;
 	unsigned long map_len;
 	unsigned long bflags;
+	struct extent_io_tree *tree;
 	atomic_t refs;
 	atomic_t pages_reading;
 	struct list_head leak_list;