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>
Fri, 1 Aug 2014 16:30:32 +0000 (12:30 -0400)
commit8c081b52c6833a30a69ea3bdcef316eccc740c87
treea48e9f698921808409304af54aa9c3b6268c0702
parente5aea7b49f2b1fd01f35ca7abeb76f5c56128a55
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