Skip to content
Commit 444fc0b6 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcache: Initialize sectors_dirty when attaching



Previously, dirty_data wouldn't get initialized until the first garbage
collection... which was a bit of a problem for background writeback (as
the PD controller keys off of it) and also confusing for users.

This is also prep work for making background writeback aware of raid5/6
stripes.

Signed-off-by: default avatarKent Overstreet <koverstreet@google.com>
parent 6ded34d1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment