btrfs-progs: handle transaction start failure in close_ctree
commitc6487a7d1d0ae7c4c37785838c4817bd4f864fb7
authorDavid Sterba <dsterba@suse.com>
Tue, 29 Aug 2017 15:22:39 +0000 (29 17:22 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000 (8 16:15 +0200)
tree4ca699980d049db0d4d6f3fea32f36603a24be92
parentc4dd5fef8a97543630fe945e5d5a365e40cb17f0
btrfs-progs: handle transaction start failure in close_ctree

Closing the fs will try to commit a pending transaction, but may fail to
do so if the filesystem state is not well defined. This will eg.  fail
for some fuzz tests. The data structures are freed but no furhter
attempt to commit is made.

Signed-off-by: David Sterba <dsterba@suse.com>
disk-io.c