]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: avoid preallocation if no work in writeback_some_dirty_blocks()
authorMike Snitzer <snitzer@redhat.com>
Fri, 17 Jul 2015 01:26:10 +0000 (21:26 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 17 Jul 2015 02:32:07 +0000 (22:32 -0400)
commit358f7105a69f5bb4f58e7d44ad7c044430e0cf99
tree5e21539eba3903ddfee00729e38d5a006f2f2005
parent3505504e687d93c1e82fe3407b251f1488013d5a
dm cache: avoid preallocation if no work in writeback_some_dirty_blocks()

Refactor writeback_some_dirty_blocks() to avoid prealloc_data_structs()
if the policy doesn't have any dirty blocks ready for writeback.

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