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>
Showing
- drivers/md/bcache/bcache.h 1 addition, 2 deletionsdrivers/md/bcache/bcache.h
- drivers/md/bcache/btree.c 10 additions, 9 deletionsdrivers/md/bcache/btree.c
- drivers/md/bcache/btree.h 5 additions, 4 deletionsdrivers/md/bcache/btree.h
- drivers/md/bcache/debug.c 2 additions, 2 deletionsdrivers/md/bcache/debug.c
- drivers/md/bcache/movinggc.c 3 additions, 2 deletionsdrivers/md/bcache/movinggc.c
- drivers/md/bcache/request.c 7 additions, 16 deletionsdrivers/md/bcache/request.c
- drivers/md/bcache/sysfs.c 8 additions, 0 deletionsdrivers/md/bcache/sysfs.c
- drivers/md/bcache/writeback.c 42 additions, 2 deletionsdrivers/md/bcache/writeback.c
- drivers/md/bcache/writeback.h 43 additions, 0 deletionsdrivers/md/bcache/writeback.h
Loading
Please register or sign in to comment