summaryrefslogtreecommitdiff
path: root/drivers/md/dm-core.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2022-02-18 07:40:28 +0300
committerMike Snitzer <snitzer@redhat.com>2022-02-21 23:36:31 +0300
commit300432f58b99449076f8a662504bb74cb452efcf (patch)
treee2680131a89165443db8a0667599823b56e7b816 /drivers/md/dm-core.h
parent018b05ebbff4f3ed611e950fe5f8760d2348b814 (diff)
downloadlinux-300432f58b99449076f8a662504bb74cb452efcf.tar.xz
dm: reduce dm_io and dm_target_io struct sizes
Remove one 4 byte hole in dm_io struct. Remove two 4 byte holes in dm_target_io struct. Reviewed-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-core.h')
-rw-r--r--drivers/md/dm-core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-core.h b/drivers/md/dm-core.h
index e2128d176831..a86b5dacef0e 100644
--- a/drivers/md/dm-core.h
+++ b/drivers/md/dm-core.h
@@ -211,9 +211,9 @@ struct dm_table {
#define DM_TIO_MAGIC 7282014
struct dm_target_io {
unsigned int magic;
+ unsigned int target_bio_nr;
struct dm_io *io;
struct dm_target *ti;
- unsigned int target_bio_nr;
unsigned int *len_ptr;
bool inside_dm_io;
sector_t old_sector;
@@ -227,10 +227,10 @@ struct dm_target_io {
#define DM_IO_MAGIC 5191977
struct dm_io {
unsigned int magic;
- struct mapped_device *md;
- blk_status_t status;
atomic_t io_count;
+ struct mapped_device *md;
struct bio *orig_bio;
+ blk_status_t status;
unsigned long start_time;
spinlock_t endio_lock;
struct dm_stats_aux stats_aux;