]> 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)
committerJosef Bacik <jbacik@fb.com>
Thu, 12 Mar 2015 15:34:18 +0000 (11:34 -0400)
commitaa4661f6a7aee90423d1c77ee4d492e7b1a99883
tree0f9fac8d0b5db5742d0f8ce8cdac2375b8b56d81
parent9266ff8a5ad2be9f04c194f742e87964ee15bab1
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