Mike Snitzer 19b0092e26 dm cache: reduce bio front_pad size in writeback mode
A recent patch to fix the dm cache target's writethrough mode extended
the bio's front_pad to include a 1056-byte struct dm_bio_details.
Writeback mode doesn't need this, so this patch reduces the
per_bio_data_size to 16 bytes in this case instead of 1096.

The dm_bio_details structure was added in "dm cache: fix writes to
cache device in writethrough mode" which fixed commit e2e74d617e ("dm
cache: fix race in writethrough implementation").  In writeback mode
we avoid allocating the writethrough-specific members of the
per_bio_data structure (the dm_bio_details structure included).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2013-04-05 15:36:34 +01:00
..
2013-02-22 23:31:31 -05:00
2013-03-01 22:45:51 +00:00
2013-03-01 22:45:51 +00:00
2013-03-20 17:21:25 +00:00
2012-03-28 18:41:29 +01:00
2013-03-01 22:45:51 +00:00
2012-07-30 17:25:16 -07:00
2013-03-05 17:22:08 -08:00
2013-03-20 17:21:25 +00:00
2013-03-01 22:45:47 +00:00
2013-03-01 22:45:49 +00:00
2012-12-21 20:23:38 +00:00
2012-10-22 10:44:55 +11:00
2013-03-05 17:22:08 -08:00
2012-10-11 13:08:44 +11:00
2013-03-01 22:45:52 +00:00
2013-03-23 15:49:49 -07:00