From: Joe Thornber Date: Wed, 10 Dec 2014 17:06:57 +0000 (+0000) Subject: dm thin: fix inability to discard blocks when in out-of-data-space mode X-Git-Tag: fixes-v4.0-rc1~376^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45ec9bd0fd7abf8705e7cf12205ff69fe9d51181;p=pandora-kernel.git dm thin: fix inability to discard blocks when in out-of-data-space mode When the pool was in PM_OUT_OF_SPACE mode its process_prepared_discard function pointer was incorrectly being set to process_prepared_discard_passdown rather than process_prepared_discard. This incorrect function pointer meant the discard was being passed down, but not effecting the mapping. As such any discard that was issued, in an attempt to reclaim blocks, would not successfully free data space. Reported-by: Eric Sandeen Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer Cc: stable@vger.kernel.org --- Reading git-diff-tree failed