dm space map disk: optimise sm_disk_dec_block
authorJoe Thornber <ejt@redhat.com>
Fri, 9 Aug 2013 13:19:32 +0000 (14:19 +0100)
committerMike Snitzer <snitzer@redhat.com>
Sat, 9 Nov 2013 23:20:24 +0000 (18:20 -0500)
commit40c57f475f416ab241124e1e6a593b2f982eaae3
tree1d15b08035b871d9fd2fab9df882fdef68330ab1
parent41d35d25e9d4e1b5e944b70f1bec272bcff5f489
dm space map disk: optimise sm_disk_dec_block

Don't waste time spotting blocks that have been allocated and then freed
in the same transaction.

The extra lookup is expensive, and I don't think it really gives us much.

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