btrfs: return an error from btrfs_record_root_in_trans
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:12 +0000 (15:25 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:20 +0000 (17:25 +0200)
commit03a7e111a94961092e2832a6259d39c8c01d6def
treeb3af5a1804c4bd73be7190ce20d04c1d7eff144f
parentf0118cb6bcd3afefd01b5bcaa4baaddbb6085092
btrfs: return an error from btrfs_record_root_in_trans

We can create a reloc root when we record the root in the trans, which
can fail for all sorts of different reasons.  Propagate this error up
the chain of callers.  Future patches will fix the callers of
btrfs_record_root_in_trans() to handle the error.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c