]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1b983280bbe7d17bdd951a0c28c81565d124dd5
tree1d15b08035b871d9fd2fab9df882fdef68330ab1
parent38a97c1af668b225b83de9f21b759ae296d562da
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