]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitadf0bce628114dbdd2a6cd70830622f5b0c23735
tree2d6264a45e412e612dba1357cf6754dc680c2fd4
parentcb0bbdbf4b8e80f51d9d51f9d97306dcfb746c25
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