dm cache: simplify deferred set reference count increments
authorJoe Thornber <ejt@redhat.com>
Tue, 13 May 2014 15:18:38 +0000 (16:18 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 15 Jul 2014 18:09:06 +0000 (14:09 -0400)
commit26733e964da00d1dd80338cc12fc27d45912ab83
tree527a6a8439dcc716e1a2b8b0a3319e92987c6328
parent175a08f026ca30e6bb432c82240a8c78014a5e24
dm cache: simplify deferred set reference count increments

Factor out inc_and_issue and inc_ds helpers to simplify deferred set
reference count increments.  Also cleanup cache_map to consistently call
cell_defer and inc_ds when the bio is DM_MAPIO_REMAPPED.

No functional change.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c