]> 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)
commit42fd0bd61d70770dc6ca9a4bb88868a4bbc6ed67
tree8cd4fc26659bdef11314cab2aea3d8a61e290fc8
parent401f13a3ba3daa60748a04e6b4cd3df69a18a381
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