]> git.hungrycats.org Git - linux/commit
Btrfs: prepare block group cache before writing
authorJosef Bacik <jbacik@fb.com>
Mon, 2 Mar 2015 21:37:31 +0000 (16:37 -0500)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:33:42 +0000 (23:33 -0400)
commit2f65573f476557c6887e56c7c9d21360ee1e54e6
tree1cb98c34bd2ded57087222ee51b1033134c51f1f
parentc10421fc846dd9c4f87ce5bb1b18cfb5ebb38828
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>
(cherry picked from commit aa4661f6a7aee90423d1c77ee4d492e7b1a99883)
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c