dm space map disk: fix some book keeping in the disk space map
authorJoe Thornber <ejt@redhat.com>
Mon, 15 May 2017 13:45:40 +0000 (09:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:44:33 +0000 (15:44 +0200)
commitf2bb8bcbc09dfe32138efc44105be9a58fad5cef
tree02229e6c77d7cd26d0ce2be920dc7918a629cedc
parentcc681811a92cd7cae589b5026b3d9d3bb1850365
dm space map disk: fix some book keeping in the disk space map

commit 0377a07c7a035e0d033cd8b29f0cb15244c0916a upstream.

When decrementing the reference count for a block, the free count wasn't
being updated if the reference count went to zero.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/persistent-data/dm-space-map-disk.c