summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-cache-policy-mq.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2013-10-14 17:24:43 +0200
committerMike Snitzer <snitzer@redhat.com>2013-11-10 00:20:24 +0100
commitffcbcb6720ab6a4bb6e0a51b3711e8c60872d281 (patch)
tree68cad35eb1e891e819979babe5b00775ed186ba0 /drivers/md/dm-cache-policy-mq.c
parentdm space map disk: optimise sm_disk_dec_block (diff)
downloadlinux-ffcbcb6720ab6a4bb6e0a51b3711e8c60872d281.tar.xz
linux-ffcbcb6720ab6a4bb6e0a51b3711e8c60872d281.zip
dm cache: optimize commit_if_needed
Check commit_requested flag _before_ calling dm_cache_changed_this_transaction() superfluously. Also, be sure to set last_commit_jiffies _after_ dm_cache_commit() completes. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-policy-mq.c')
0 files changed, 0 insertions, 0 deletions