Btrfs: prepare block group cache before writing
authorJosef Bacik <jbacik@fb.com>
Mon, 2 Mar 2015 21:37:31 +0000 (16:37 -0500)
committerJosef Bacik <jbacik@fb.com>
Tue, 17 Mar 2015 14:56:55 +0000 (10:56 -0400)
commitdcdf7f6ddba006f3482ebee73dfa6b75aec5f07b
treea91a5105b64f8d0c6ea5f653ea0000b295050b2a
parentea526d18990018f224e5734748975bea1824545f
Btrfs: prepare block group cache before writing

Writing the block group cache will modify the extent tree quite a bit because it
truncates the old space cache and pre-allocates new stuff.  To try and cut down
on the churn lets do the setup dance first, then later on hopefully we can avoid
looping with newly dirtied roots.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c