commit | e782eff591bca2d96bac30ab5d1cfa4ccd3b0f86 | [log] [tgz] |
---|---|---|
author | Mike Snitzer <snitzer@redhat.com> | Thu Jul 16 21:26:10 2015 -0400 |
committer | Mike Snitzer <snitzer@redhat.com> | Thu Jul 16 22:32:07 2015 -0400 |
tree | 5e21539eba3903ddfee00729e38d5a006f2f2005 | |
parent | 386cb7cdeeef97e0bf082a8d6bbfc07a2ccce07b [diff] |
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>