dm cache policy smq: cleanup free_target_met() and clean_target_met()
authorMike Snitzer <snitzer@redhat.com>
Thu, 4 May 2017 14:04:18 +0000 (10:04 -0400)
committerMike Snitzer <snitzer@redhat.com>
Thu, 4 May 2017 14:27:47 +0000 (10:27 -0400)
commit97dfb20309e0ad4fa22deb5bc5ed85604d5014ef
tree0c8cb574c9688322cb4bf061d648e2e43dde8b79
parentce1d64e84dbea98d41deaf5db0fe91fd729ad2cd
dm cache policy smq: cleanup free_target_met() and clean_target_met()

Depending on the passed @idle arg, there may be no need to calculate
'nr_free' or 'nr_clean' respectively in free_target_met() and
clean_target_met().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-policy-smq.c