]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache policy mq: keep track of the number of entries in a multiqueue
authorJoe Thornber <ejt@redhat.com>
Fri, 20 Feb 2015 12:58:03 +0000 (12:58 +0000)
committerMike Snitzer <snitzer@redhat.com>
Tue, 31 Mar 2015 16:03:48 +0000 (12:03 -0400)
commit4991875c5eb120e33bab00fbcb995ee554e781bb
tree8cd4fc26659bdef11314cab2aea3d8a61e290fc8
parent83854157bc478ec7d3128a8a3dee0939b888e92f
dm cache policy mq: keep track of the number of entries in a multiqueue

Small optimisation, now queue_empty() doesn't need to walk all levels of
the multiqueue.

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