summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-stats.c
diff options
context:
space:
mode:
authorVincent Pelletier <plr.vincent@gmail.com>2013-11-30 12:58:42 +0100
committerMike Snitzer <snitzer@redhat.com>2013-12-10 22:35:15 +0100
commit088448007bb97af47ec3f05fc3e9517ffb5e9fba (patch)
tree433be16599a4e41a76ae96e4d1273c3eafaa763c /drivers/md/dm-stats.c
parentdm cache: update Documentation for invalidate_cblocks's range syntax (diff)
downloadlinux-088448007bb97af47ec3f05fc3e9517ffb5e9fba.tar.xz
linux-088448007bb97af47ec3f05fc3e9517ffb5e9fba.zip
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 <plr.vincent@gmail.com> Acked-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-stats.c')
0 files changed, 0 insertions, 0 deletions