btrfs-progs: reduce size of btrfs_path, locks are not used
authorDavid Sterba <dsterba@suse.com>
Thu, 3 Nov 2016 15:49:30 +0000 (16:49 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Nov 2016 12:47:31 +0000 (13:47 +0100)
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>
ctree.h

diff --git a/ctree.h b/ctree.h
index 7f25d1e..52ddd52 100644 (file)
--- 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;