]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/btrfs/extent_io.c
Btrfs: reduce size of struct extent_state
authorFilipe Manana <fdmanana@suse.com>
Sun, 6 Jul 2014 19:09:59 +0000 (20:09 +0100)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:30 +0000 (13:37 -0700)
commit27a3507de91e3dd51a2cf8dca4b33623dd6eaa88
treeef0a15fb445a2006a305cc9d61c918eb60d6c034
parent6f84e23646704c93fa878c5b87a4990be8d1ca9c
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>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h