]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: move hook_info into common portion of per_bio_data structure
authorMike Snitzer <snitzer@redhat.com>
Fri, 31 Jan 2014 19:11:54 +0000 (14:11 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 17 Feb 2014 16:00:05 +0000 (11:00 -0500)
commitf654def65926c0617b817af2ea1829eadcc75ede
tree4736ef966a154b8a96820a345db96bd6284c69a7
parentaf18dbdc538d68661a2dc170065e02fb49a2ec53
dm cache: move hook_info into common portion of per_bio_data structure

Commit 07c5135b ("dm cache: promotion optimisation for writes")
incorrectly placed the 'hook_info' member in the writethrough-only
portion of the per_bio_data structure.

Given that the overwrite optimization may be used for writeback the
'hook_info' member must be placed above the 'cache' member of the
per_bio_data structure.  Any members above 'cache' are available from
both writeback and writethrough modes' per_bio_data structure.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Cc: stable@vger.kernel.org # 3.13+
drivers/md/dm-cache-target.c