Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
bd4a6dd2
Commit
bd4a6dd2
authored
Mar 19, 2022
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm: reduce size of dm_io and dm_target_io structs
Signed-off-by:
Mike Snitzer
<
snitzer@kernel.org
>
parent
655f3aad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/md/dm-core.h
drivers/md/dm-core.h
+6
-6
No files found.
drivers/md/dm-core.h
View file @
bd4a6dd2
...
@@ -208,14 +208,14 @@ struct dm_table {
...
@@ -208,14 +208,14 @@ struct dm_table {
/*
/*
* One of these is allocated per clone bio.
* One of these is allocated per clone bio.
*/
*/
#define DM_TIO_MAGIC
72820
14
#define DM_TIO_MAGIC
287
14
struct
dm_target_io
{
struct
dm_target_io
{
unsigned
int
magic
;
unsigned
short
magic
;
unsigned
short
flags
;
unsigned
int
target_bio_nr
;
unsigned
int
target_bio_nr
;
struct
dm_io
*
io
;
struct
dm_io
*
io
;
struct
dm_target
*
ti
;
struct
dm_target
*
ti
;
unsigned
int
*
len_ptr
;
unsigned
int
*
len_ptr
;
unsigned
short
flags
;
sector_t
old_sector
;
sector_t
old_sector
;
struct
bio
clone
;
struct
bio
clone
;
};
};
...
@@ -242,14 +242,14 @@ static inline void dm_tio_set_flag(struct dm_target_io *tio, unsigned int bit)
...
@@ -242,14 +242,14 @@ static inline void dm_tio_set_flag(struct dm_target_io *tio, unsigned int bit)
* One of these is allocated per original bio.
* One of these is allocated per original bio.
* It contains the first clone used for that original.
* It contains the first clone used for that original.
*/
*/
#define DM_IO_MAGIC
51919
77
#define DM_IO_MAGIC
195
77
struct
dm_io
{
struct
dm_io
{
unsigned
int
magic
;
unsigned
short
magic
;
unsigned
short
flags
;
atomic_t
io_count
;
atomic_t
io_count
;
struct
mapped_device
*
md
;
struct
mapped_device
*
md
;
struct
bio
*
orig_bio
;
struct
bio
*
orig_bio
;
blk_status_t
status
;
blk_status_t
status
;
unsigned
short
flags
;
unsigned
long
start_time
;
unsigned
long
start_time
;
void
*
data
;
void
*
data
;
struct
hlist_node
node
;
struct
hlist_node
node
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment