btrfs-progs: reduce size of btrfs_path, locks are not used

Size of btrfs_path can be reduced by 32 bytes as we don't use the locks
array, down to 112 from 144 bytes.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-11-03 16:49:30 +01:00
parent 7456592977
commit b81edabe79

View File

@ -555,8 +555,10 @@ struct btrfs_node {
struct btrfs_path {
struct extent_buffer *nodes[BTRFS_MAX_LEVEL];
int slots[BTRFS_MAX_LEVEL];
/* if there is real range locking, this locks field will change */
#if 0
/* The kernel locking sheme is not done in userspace. */
int locks[BTRFS_MAX_LEVEL];
#endif
int reada;
/* keep some upper locks as we walk down */
int lowest_level;