aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dm-io.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2010-03-05 21:32:33 -0500
committerAlasdair G Kergon <agk@redhat.com>2010-03-05 21:32:33 -0500
commit924e600d417ead9ef67043988055ba236f114718 (patch)
tree338db5dfc0f8fe8f9aa39bd19639ad1f1dc27e46 /include/linux/dm-io.h
parent3abf85b5b5851b5f28d3d8a920ebb844edd08352 (diff)
dm: eliminate some holes data structures
Eliminate a 4-byte hole in 'struct dm_io_memory' by moving 'offset' above the 'ptr' to which it applies (size reduced from 24 to 16 bytes). And by association, 1-4 byte hole is eliminated in 'struct dm_io_request' (size reduced from 56 to 48 bytes). Eliminate all 6 4-byte holes and 1 cache-line in 'struct dm_snapshot' (size reduced from 392 to 368 bytes). Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'include/linux/dm-io.h')
-rw-r--r--include/linux/dm-io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/dm-io.h b/include/linux/dm-io.h
index b6bf17ee2f61..5c9186b93fff 100644
--- a/include/linux/dm-io.h
+++ b/include/linux/dm-io.h
@@ -37,14 +37,14 @@ enum dm_io_mem_type {
37struct dm_io_memory { 37struct dm_io_memory {
38 enum dm_io_mem_type type; 38 enum dm_io_mem_type type;
39 39
40 unsigned offset;
41
40 union { 42 union {
41 struct page_list *pl; 43 struct page_list *pl;
42 struct bio_vec *bvec; 44 struct bio_vec *bvec;
43 void *vma; 45 void *vma;
44 void *addr; 46 void *addr;
45 } ptr; 47 } ptr;
46
47 unsigned offset;
48}; 48};
49 49
50struct dm_io_notify { 50struct dm_io_notify {