summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2014-07-06 20:09:59 +0100
committerChris Mason <clm@fb.com>2014-09-17 13:37:30 -0700
commit27a3507de91e3dd51a2cf8dca4b33623dd6eaa88 (patch)
treeef0a15fb445a2006a305cc9d61c918eb60d6c034 /fs/btrfs/extent_io.h
parent6f84e23646704c93fa878c5b87a4990be8d1ca9c (diff)
downloadlinux-0-day-27a3507de91e3dd51a2cf8dca4b33623dd6eaa88.tar.gz
linux-0-day-27a3507de91e3dd51a2cf8dca4b33623dd6eaa88.tar.xz
Btrfs: reduce size of struct extent_state
The tree field of struct extent_state was only used to figure out if an extent state was connected to an inode's io tree or not. For this we can just use the rb_node field itself. On a x86_64 system with this change the sizeof(struct extent_state) is reduced from 96 bytes down to 88 bytes, meaning that with a page size of 4096 bytes we can now store 46 extent states per page instead of 42. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index ccc264e7bde12..1f608166fe670 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -108,7 +108,6 @@ struct extent_state {
struct rb_node rb_node;
/* ADD NEW ELEMENTS AFTER THIS */
- struct extent_io_tree *tree;
wait_queue_head_t wq;
atomic_t refs;
unsigned long state;