Btrfs: two stage dirty block group writeout
authorChris Mason <clm@fb.com>
Sun, 5 Apr 2015 00:14:42 +0000 (17:14 -0700)
committerChris Mason <clm@fb.com>
Fri, 10 Apr 2015 21:07:11 +0000 (14:07 -0700)
commitc9dc4c6578502c2085705347375b82089aad18d0
tree2d6264a45e412e612dba1357cf6754dc680c2fd4
parent4c6d1d85ad89fd8e32dc9204b7f944854399bda9
Btrfs: two stage dirty block group writeout

Block group cache writeout is currently waiting on the pages for each
block group cache before moving on to writing the next one.  This commit
switches things around to send down all the caches and then wait on them
in batches.

The end result is much faster, since we're keeping the disk pipeline
full.

Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h