aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.h
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2014-02-25 14:15:12 +0000
committerJosef Bacik <[email protected]>2014-03-10 19:16:56 +0000
commitcbc0e9287d710ce7dce5f8daf667729e83316c45 (patch)
treeabd3c0c847c07464186b86afb9cea66473f024ed /fs/btrfs/async-thread.h
parentBtrfs: skip locking when searching commit root (diff)
downloadkernel-cbc0e9287d710ce7dce5f8daf667729e83316c45.tar.gz
kernel-cbc0e9287d710ce7dce5f8daf667729e83316c45.zip
Btrfs: remove unneeded field / smaller extent_map structure
We don't need to have an unsigned int field in the extent_map struct to tell us whether the extent map is in the inode's extent_map tree or not. We can use the rb_node struct field and the RB_CLEAR_NODE and RB_EMPTY_NODE macros to achieve the same task. This reduces sizeof(struct extent_map) from 152 bytes to 144 bytes (on a 64 bits system). Signed-off-by: Filipe David Borba Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.h')
0 files changed, 0 insertions, 0 deletions