diff options
author | Josef Bacik <josef@redhat.com> | 2012-03-07 16:20:05 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-03-26 16:51:07 -0400 |
commit | 4f2de97acee6532b36dd6e995b858343771ad126 (patch) | |
tree | 240ee16e76f2f2e4850e6fe2e90174e7cd794a9b /fs/btrfs/extent_io.h | |
parent | 727011e07cbdf87772fcc1999cccd15cc915eb62 (diff) | |
download | blackbird-op-linux-4f2de97acee6532b36dd6e995b858343771ad126.tar.gz blackbird-op-linux-4f2de97acee6532b36dd6e995b858343771ad126.zip |
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.h | 1 |
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; |