]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
btrfs: use smaller type for btrfs_path reada
authorDavid Sterba <dsterba@suse.com>
Fri, 27 Nov 2015 15:31:38 +0000 (16:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jan 2016 14:01:16 +0000 (15:01 +0100)
The possible values for reada are all positive and bounded, we can later
save some bytes by storing it in u8.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h

index a1cf4c8135789f5f07fbcced7405febeef78b197..e5f9b96fc86f495aa05383e2deedee62ffc529df 100644 (file)
@@ -596,7 +596,7 @@ struct btrfs_path {
        int slots[BTRFS_MAX_LEVEL];
        /* if there is real range locking, this locks field will change */
        int locks[BTRFS_MAX_LEVEL];
-       int reada;
+       u8 reada;
        /* keep some upper locks as we walk down */
        int lowest_level;