Skip to content
Commit e782eff5 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

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: default avatarMike Snitzer <snitzer@redhat.com>
parent 386cb7cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment