From: Mike Snitzer Date: Thu, 12 Feb 2015 21:25:05 +0000 (-0500) Subject: dm space map disk: fix sm_disk_count_is_more_than_one() X-Git-Tag: fixes-v4.0-rc1~28^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=145b9006a0ae753582902170ec1da49f89501845;p=pandora-kernel.git dm space map disk: fix sm_disk_count_is_more_than_one() dm_tm_shadow_block() is the only caller of dm_sm_count_is_more_than_one() which only ever operates on a metadata space-map. So in practice, sm_disk_count_is_more_than_one() isn't actually used (which explains why this bug never amounted to anything). But fix sm_disk_count_is_more_than_one() to properly set *result and return 0. Reported-by: Vivek Goyal Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed