From: Mike Snitzer Date: Fri, 31 Jan 2014 19:11:54 +0000 (-0500) Subject: dm cache: move hook_info into common portion of per_bio_data structure X-Git-Tag: v3.14-rc5~11^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6eda5e81c4fcc77185117255c7419eda771f67f;p=pandora-kernel.git dm cache: move hook_info into common portion of per_bio_data structure Commit c9d28d5d ("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 Acked-by: Joe Thornber Cc: stable@vger.kernel.org # 3.13+ --- Reading git-diff-tree failed