From: Vincent Pelletier Date: Sat, 30 Nov 2013 11:58:42 +0000 (+0100) Subject: dm cache: actually resize cache X-Git-Tag: v3.13-rc4~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=088448007bb97af47ec3f05fc3e9517ffb5e9fba;p=pandora-kernel.git dm cache: actually resize cache Commit f494a9c6b1b6dd9a9f21bbb75d9210d478eeb498 ("dm cache: cache shrinking support") broke cache resizing support. dm_cache_resize() is called with cache->cache_size before it gets updated to new_size, so it is a no-op. But the dm-cache superblock is updated with the new_size even though the backing dm-array is not resized. Fix this by passing the new_size to dm_cache_resize(). Signed-off-by: Vincent Pelletier Acked-by: Joe Thornber Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed