Skip to content

Commit bd4a6dd

Browse files
author
Mike Snitzer
committed
dm: reduce size of dm_io and dm_target_io structs
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
1 parent 655f3aa commit bd4a6dd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/md/dm-core.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ struct dm_table {
208208
/*
209209
* One of these is allocated per clone bio.
210210
*/
211-
#define DM_TIO_MAGIC 7282014
211+
#define DM_TIO_MAGIC 28714
212212
struct dm_target_io {
213-
unsigned int magic;
213+
unsigned short magic;
214+
unsigned short flags;
214215
unsigned int target_bio_nr;
215216
struct dm_io *io;
216217
struct dm_target *ti;
217218
unsigned int *len_ptr;
218-
unsigned short flags;
219219
sector_t old_sector;
220220
struct bio clone;
221221
};
@@ -242,14 +242,14 @@ static inline void dm_tio_set_flag(struct dm_target_io *tio, unsigned int bit)
242242
* One of these is allocated per original bio.
243243
* It contains the first clone used for that original.
244244
*/
245-
#define DM_IO_MAGIC 5191977
245+
#define DM_IO_MAGIC 19577
246246
struct dm_io {
247-
unsigned int magic;
247+
unsigned short magic;
248+
unsigned short flags;
248249
atomic_t io_count;
249250
struct mapped_device *md;
250251
struct bio *orig_bio;
251252
blk_status_t status;
252-
unsigned short flags;
253253
unsigned long start_time;
254254
void *data;
255255
struct hlist_node node;

0 commit comments

Comments
 (0)