diff options
author | David Sterba <dsterba@suse.com> | 2015-11-27 10:31:42 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-07 09:01:17 -0500 |
commit | 7853f15b2aeeb01c587168fc3f7f0ff76a3c9bfd (patch) | |
tree | 3812a4cf21f76e6be44153b94e6d8c640da36835 | |
parent | dccabfad20880bc6c8be21b538df4293506b99f8 (diff) |
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 <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index e5f9b96fc86f..09ee92d9670c 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -598,7 +598,7 @@ struct btrfs_path { | |||
598 | int locks[BTRFS_MAX_LEVEL]; | 598 | int locks[BTRFS_MAX_LEVEL]; |
599 | u8 reada; | 599 | u8 reada; |
600 | /* keep some upper locks as we walk down */ | 600 | /* keep some upper locks as we walk down */ |
601 | int lowest_level; | 601 | u8 lowest_level; |
602 | 602 | ||
603 | /* | 603 | /* |
604 | * set by btrfs_split_item, tells search_slot to keep all locks | 604 | * set by btrfs_split_item, tells search_slot to keep all locks |