]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bcache: Initialize sectors_dirty when attaching
authorKent Overstreet <koverstreet@google.com>
Sun, 12 May 2013 00:07:26 +0000 (17:07 -0700)
committerKent Overstreet <koverstreet@google.com>
Thu, 27 Jun 2013 00:09:16 +0000 (17:09 -0700)
commit444fc0b6b167ed164e7436621a9d095e042644dd
tree4625e5b019f6f36794268c358fad393248df5bd6
parent6ded34d1a54c046a45db071d3cb7b37bd0a4a31f
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>
drivers/md/bcache/bcache.h
drivers/md/bcache/btree.c
drivers/md/bcache/super.c
drivers/md/bcache/writeback.c