From: Joe Thornber Date: Thu, 27 Nov 2014 12:26:46 +0000 (+0000) Subject: dm cache: dirty flag was mistakenly being cleared when promoting via overwrite X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~22^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e32134a5a404e80bfb47fad8a94e9bbfcbdacc5;p=pandora-kernel.git dm cache: dirty flag was mistakenly being cleared when promoting via overwrite If the incoming bio is a WRITE and completely covers a block then we don't bother to do any copying for a promotion operation. Once this is done the cache block and origin block will be different, so we need to set it to 'dirty'. Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer Cc: stable@vger.kernel.org --- Reading git-diff-tree failed