From: Kent Overstreet Date: Mon, 11 Nov 2013 05:55:27 +0000 (-0800) Subject: bcache: Fix dirty_data accounting X-Git-Tag: v3.13-rc1~68^2~1^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fa8455deb92e9ec7756df23030e73b2d28eeca7;p=pandora-kernel.git bcache: Fix dirty_data accounting Dirty data accounting wasn't quite right - firstly, we were adding the key we're inserting after it could have merged with another dirty key already in the btree, and secondly we could sometimes pass the wrong offset to bcache_dev_sectors_dirty_add() for dirty data we were overwriting - which is important when tracking dirty data by stripe. Signed-off-by: Kent Overstreet Cc: linux-stable # >= v3.10 --- Reading git-diff-tree failed