btrfs: reorder btrfs_trans_handle members for better packing
authorDavid Sterba <dsterba@suse.com>
Wed, 8 Nov 2017 00:54:33 +0000 (01:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:14 +0000 (16:08 +0100)
Recent updates to the structure left some holes, reorder the types so
the packing is tight. The size goes from 112 to 104 on 64bit.

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

index afa88f035654fb1df3bb586213ef7a73c8bfaf84..edf53112a6f209c0a0fc4669debcd53c82428f2e 100644 (file)
@@ -111,11 +111,12 @@ struct btrfs_trans_handle {
        u64 transid;
        u64 bytes_reserved;
        u64 chunk_bytes_reserved;
-       refcount_t use_count;
        unsigned long delayed_ref_updates;
        struct btrfs_transaction *transaction;
        struct btrfs_block_rsv *block_rsv;
        struct btrfs_block_rsv *orig_rsv;
+       refcount_t use_count;
+       unsigned int type;
        short aborted;
        bool adding_csums;
        bool allocating_chunk;
@@ -123,7 +124,6 @@ struct btrfs_trans_handle {
        bool reloc_reserved;
        bool sync;
        bool dirty;
-       unsigned int type;
        struct btrfs_root *root;
        struct btrfs_fs_info *fs_info;
        struct list_head new_bgs;