Btrfs-progs: remove global transaction from fsck
authorJosef Bacik <jbacik@fb.com>
Mon, 9 Feb 2015 15:02:25 +0000 (10:02 -0500)
committerJosef Bacik <jbacik@fb.com>
Mon, 9 Feb 2015 19:53:15 +0000 (14:53 -0500)
commit08a45972234b3edb1348641e188f233bab6e50c1
tree1fe22dd486f7f558f720e86a6bf0ea2644c208b7
parentbce7dbba2859a47554c122eae32ead87e6a6510a
Btrfs-progs: remove global transaction from fsck

We hold a transaction open for the entirety of fixing extent refs.  This works
out ok most of the time but we can be tight on space and run out of space when
fixing things.  To get around this just push down the transaction starting dance
into the functions that actually fix things.  This keeps us from ending up with
ENOSPC because we pinned everything and allows the code to be a bit simpler.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
cmds-check.c
ctree.h
disk-io.c
extent-tree.c