summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMike Snitzer2013-04-05 16:36:34 +0200
committerAlasdair G Kergon2013-04-05 16:36:34 +0200
commit19b0092e265fe9ab129902373c3127c0e0be3376 (patch)
tree1aae9fbcc44e25af28816cb317c684cbd259e503 /drivers/mmc
parentdm cache: fix writes to cache device in writethrough mode (diff)
downloadkernel-qcow2-linux-19b0092e265fe9ab129902373c3127c0e0be3376.tar.gz
kernel-qcow2-linux-19b0092e265fe9ab129902373c3127c0e0be3376.tar.xz
kernel-qcow2-linux-19b0092e265fe9ab129902373c3127c0e0be3376.zip
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>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions