bcache: Write out full stripes
authorKent Overstreet <koverstreet@google.com>
Wed, 5 Jun 2013 13:24:39 +0000 (06:24 -0700)
committerKent Overstreet <koverstreet@google.com>
Thu, 27 Jun 2013 04:58:04 +0000 (21:58 -0700)
commit72c270612bd33192fa836ad0f2939af1ca218292
tree344129d75f3b5c0abcf77dd4b6340783a126cde8
parent279afbad4e54acbd61bf88a54a73af3bbfdeb5dd
bcache: Write out full stripes

Now that we're tracking dirty data per stripe, we can add two
optimizations for raid5/6:

 * If a stripe is already dirty, force writes to that stripe to
   writeback mode - to help build up full stripes of dirty data

 * When flushing dirty data, preferentially write out full stripes first
   if there are any.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/bcache.h
drivers/md/bcache/btree.c
drivers/md/bcache/btree.h
drivers/md/bcache/debug.c
drivers/md/bcache/movinggc.c
drivers/md/bcache/request.c
drivers/md/bcache/sysfs.c
drivers/md/bcache/writeback.c
drivers/md/bcache/writeback.h