]> git.baikalelectronics.ru Git - kernel.git/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>
Tue, 17 Mar 2015 14:56:55 +0000 (10:56 -0400)
commit5ec8f6edea0dde783f8bf22fa7fca81f37705f6a
treea91a5105b64f8d0c6ea5f653ea0000b295050b2a
parent9d73b91cbecef237c9ae81eb8f78b8ffdc2a8743
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