Kent Overstreet 444fc0b6b1 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: Kent Overstreet <koverstreet@google.com>
2013-06-26 17:09:16 -07:00
..
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:16 -07:00
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:15 -07:00
2013-03-25 19:36:39 -06:00
2013-03-25 13:06:13 -06:00
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:15 -07:00
2013-05-15 00:42:51 -07:00
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:15 -07:00
2013-06-26 17:09:15 -07:00
2013-04-08 13:33:49 -07:00
2013-06-26 17:09:15 -07:00