From: David Sterba Date: Fri, 27 Nov 2015 15:31:42 +0000 (+0100) Subject: btrfs: use smaller type for btrfs_path lowest_level X-Git-Tag: v4.5-rc1~65^2~2^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7853f15b2aeeb01c587168fc3f7f0ff76a3c9bfd;p=thirdparty%2Fkernel%2Flinux.git btrfs: use smaller type for btrfs_path lowest_level The level is 0..7, we can use smaller type. The size of btrfs_path is now 136 bytes from 144, which is +2 objects that fit into a 4k slab. Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index e5f9b96fc86f4..09ee92d9670c2 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -598,7 +598,7 @@ struct btrfs_path { int locks[BTRFS_MAX_LEVEL]; u8 reada; /* keep some upper locks as we walk down */ - int lowest_level; + u8 lowest_level; /* * set by btrfs_split_item, tells search_slot to keep all locks