mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-27 16:42:17 +00:00
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:
parent
7456592977
commit
b81edabe79
4
ctree.h
4
ctree.h
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user