diff options
author | Josef Bacik <josef@redhat.com> | 2012-03-07 22:20:05 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-03-26 22:51:07 +0200 |
commit | 4f2de97acee6532b36dd6e995b858343771ad126 (patch) | |
tree | 240ee16e76f2f2e4850e6fe2e90174e7cd794a9b /fs/btrfs/extent_io.h | |
parent | Btrfs: allow metadata blocks larger than the page size (diff) | |
download | linux-4f2de97acee6532b36dd6e995b858343771ad126.tar.xz 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; |