]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite82da529203ecf66c5a70ae3c6cc64ac7f191c4b
tree0c8cb574c9688322cb4bf061d648e2e43dde8b79
parentf5cb936040ae0a2b97a272e4c0b717234f8d52c1
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