David Sterba
105c8c4214
btrfs: reduce size of prelim_ref::level
...
The values of level are bounded and fit into a byte so let's use it for
the structure to reduce size from 88 to 80 bytes on a release build,
which increases number of objects in the default 8K slab from 93 to 102.
struct prelim_ref {
struct rb_node rbnode __attribute__((__aligned__(8))); /* 0 24 */
u64 root_id; /* 24 8 */
struct btrfs_key key_for_search; /* 32 17 */
u8 level; /* 49 1 */
/* XXX 2 bytes hole, try to pack */
int count; /* 52 4 */
struct extent_inode_elem * inode_list; /* 56 8 */
/* --- cacheline 1 boundary (64 bytes) --- */
u64 parent; /* 64 8 */
u64 wanted_disk_byte; /* 72 8 */
/* size: 80, cachelines: 2, members: 8 */
/* sum members: 78, holes: 1, sum holes: 2 */
/* forced alignments: 1 */
/* last cacheline: 16 bytes */
} __attribute__((__aligned__(8)));
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-10-12 16:44:04 +02:00
..
2023-08-21 14:54:49 +02:00
2022-12-05 18:00:58 +01:00
2023-10-12 16:44:02 +02:00
2023-01-19 09:24:28 +01:00
2023-01-19 09:24:27 +01:00
2023-10-12 16:44:03 +02:00
2023-06-19 13:59:30 +02:00
2023-08-21 14:54:48 +02:00
2023-10-12 16:44:04 +02:00
2023-06-19 13:59:36 +02:00
2023-06-19 13:59:36 +02:00
2023-09-08 14:10:36 +02:00
2023-08-21 14:52:12 +02:00
2023-07-20 19:22:54 +02:00
2023-06-19 13:59:24 +02:00
2023-10-12 16:44:03 +02:00
2023-06-19 13:59:34 +02:00
2023-06-19 17:01:44 +02:00
2023-06-19 13:59:36 +02:00
2023-10-12 16:44:04 +02:00
2023-10-12 16:44:03 +02:00
2023-06-19 13:59:30 +02:00
2022-12-05 18:00:46 +01:00
2023-04-17 18:01:19 +02:00
2023-10-12 16:44:04 +02:00
2023-10-11 11:37:19 +02:00
2023-10-12 16:44:04 +02:00
2023-09-20 20:42:18 +02:00
2023-08-21 14:52:12 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:46 +01:00
2023-10-12 16:44:02 +02:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:25 +02:00
2023-10-12 16:44:04 +02:00
2023-08-21 14:52:18 +02:00
2022-12-05 18:00:47 +01:00
2023-10-12 16:44:04 +02:00
2023-08-21 14:52:19 +02:00
2023-08-18 14:38:10 +02:00
2023-06-19 13:59:33 +02:00
2023-08-21 14:52:12 +02:00
2023-08-21 14:52:12 +02:00
2023-10-12 16:44:04 +02:00
2023-10-12 16:44:04 +02:00
2023-08-21 14:54:48 +02:00
2023-08-21 14:54:48 +02:00
2023-10-12 16:44:02 +02:00
2022-12-05 18:00:56 +01:00
2023-10-12 16:44:02 +02:00
2023-06-19 13:59:24 +02:00
2023-08-21 14:52:12 +02:00
2023-05-10 14:51:27 +02:00
2023-02-13 17:50:35 +01:00
2023-08-21 14:52:19 +02:00
2023-10-12 16:44:04 +02:00
2023-10-12 16:44:02 +02:00
2023-10-12 16:44:04 +02:00
2023-10-06 08:07:47 -07:00
2023-01-19 09:24:27 +01:00
2023-09-08 14:21:27 +02:00
2023-10-12 16:44:04 +02:00
2023-09-08 14:10:49 +02:00
2023-02-15 19:38:50 +01:00
2023-04-17 18:01:18 +02:00
2023-06-19 13:59:34 +02:00
2023-02-13 17:50:35 +01:00
2023-10-12 16:44:04 +02:00
2023-08-21 14:54:48 +02:00
2023-08-24 16:20:18 -07:00
2023-09-08 14:10:59 +02:00
2023-06-19 13:59:37 +02:00
2022-12-05 18:00:47 +01:00
2022-12-05 18:00:47 +01:00
2023-08-21 14:54:48 +02:00
2023-06-19 13:59:22 +02:00
2023-10-12 16:44:02 +02:00
2023-10-12 16:44:04 +02:00
2023-10-12 16:44:04 +02:00
2023-08-21 14:54:48 +02:00
2023-08-21 14:52:12 +02:00
2022-12-05 18:00:59 +01:00
2023-10-12 16:44:04 +02:00
2023-07-13 10:28:04 +02:00
2023-10-12 16:44:04 +02:00
2023-06-19 13:59:36 +02:00
2023-10-12 16:44:04 +02:00
2023-10-12 16:44:04 +02:00
2023-08-21 14:54:49 +02:00
2023-04-17 18:01:24 +02:00
2023-10-12 16:44:02 +02:00
2023-10-12 16:44:04 +02:00
2023-10-12 16:44:03 +02:00
2023-06-19 13:59:35 +02:00
2023-06-19 13:59:35 +02:00
2023-10-12 16:44:03 +02:00
2022-12-05 18:00:47 +01:00
2023-08-21 14:52:12 +02:00
2023-02-13 17:50:35 +01:00
2023-10-12 16:44:04 +02:00
2023-10-04 01:03:59 +02:00
2023-10-12 16:44:02 +02:00
2023-06-19 13:59:25 +02:00
2023-10-12 16:44:04 +02:00
2023-06-19 13:59:26 +02:00
2023-06-19 13:59:38 +02:00
2022-12-05 18:00:48 +01:00
2023-10-12 16:44:04 +02:00
2022-12-05 18:00:50 +01:00
2022-12-05 18:00:46 +01:00
2022-12-05 18:00:46 +01:00
2023-09-13 18:40:54 +02:00
2022-12-05 18:00:47 +01:00
2023-10-12 16:44:04 +02:00
2023-10-12 16:44:04 +02:00
2023-07-13 10:28:04 +02:00
2023-06-19 13:59:34 +02:00
2023-10-12 16:44:02 +02:00
2023-08-21 14:52:19 +02:00
2023-10-12 16:44:04 +02:00