mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 08:35:08 +08:00
btrfs: reorder btrfs_inode to fill gaps
Previous commit created a hole in struct btrfs_inode, we can move outstanding_extents there. This reduces size by 8 bytes from 1120 to 1112 on a release config. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
54c6537146
commit
398fb9131f
@ -113,6 +113,14 @@ struct btrfs_inode {
|
|||||||
/* held while logging the inode in tree-log.c */
|
/* held while logging the inode in tree-log.c */
|
||||||
struct mutex log_mutex;
|
struct mutex log_mutex;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Counters to keep track of the number of extent item's we may use due
|
||||||
|
* to delalloc and such. outstanding_extents is the number of extent
|
||||||
|
* items we think we'll end up using, and reserved_extents is the number
|
||||||
|
* of extent items we've reserved metadata for.
|
||||||
|
*/
|
||||||
|
unsigned outstanding_extents;
|
||||||
|
|
||||||
/* used to order data wrt metadata */
|
/* used to order data wrt metadata */
|
||||||
spinlock_t ordered_tree_lock;
|
spinlock_t ordered_tree_lock;
|
||||||
struct rb_root ordered_tree;
|
struct rb_root ordered_tree;
|
||||||
@ -236,14 +244,6 @@ struct btrfs_inode {
|
|||||||
/* Read-only compatibility flags, upper half of inode_item::flags */
|
/* Read-only compatibility flags, upper half of inode_item::flags */
|
||||||
u32 ro_flags;
|
u32 ro_flags;
|
||||||
|
|
||||||
/*
|
|
||||||
* Counters to keep track of the number of extent item's we may use due
|
|
||||||
* to delalloc and such. outstanding_extents is the number of extent
|
|
||||||
* items we think we'll end up using, and reserved_extents is the number
|
|
||||||
* of extent items we've reserved metadata for.
|
|
||||||
*/
|
|
||||||
unsigned outstanding_extents;
|
|
||||||
|
|
||||||
struct btrfs_block_rsv block_rsv;
|
struct btrfs_block_rsv block_rsv;
|
||||||
|
|
||||||
struct btrfs_delayed_node *delayed_node;
|
struct btrfs_delayed_node *delayed_node;
|
||||||
|
Loading…
Reference in New Issue
Block a user