Skip to content

Commit

Permalink
dm: reduce dm_io and dm_target_io struct sizes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
snitm committed Feb 21, 2022
1 parent 018b05e commit 300432f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/md/dm-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 300432f

Please sign in to comment.