• Filipe Manana's avatar
    btrfs: store index number instead of key in struct btrfs_delayed_item · 96d89923
    Filipe Manana authored
    All delayed items are for dir index keys, so there's really no point of
    having an embedded struct btrfs_key in struct btrfs_delayed_item, which
    makes the structure use more space than necessary (and adds a hole of 7
    bytes).
    
    So replace the key field with an index number (u64), which reduces the
    size of struct btrfs_delayed_item from 112 bytes down to 96 bytes.
    
    Some upcoming work will increase the structure size by 16 bytes, so this
    change compensates for that future size increase.
    Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    96d89923
delayed-inode.h 4.69 KB