summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-03 16:49:30 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-09 13:47:31 +0100
commitb81edabe79aa2ab8c23c4af977382a67a7a42ac1 (patch)
tree3e0246be08534f1bef07cc499f1ba96e8658e931
parent7456592977acec12670e545050bba719c83ef0db (diff)
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>
-rw-r--r--ctree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctree.h b/ctree.h
index 7f25d1e8..52ddd522 100644
--- a/ctree.h
+++ b/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;