]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Tue, 6 Apr 2021 17:39:12 +0000 (19:39 +0200)
commit9c884048765c8dab77a3b9adcccb9f638adf499e
tree6efc48e5b8b10fc8e4c34ccd341c9a3f8e5c4a79
parentf4c5cbdc543b4eb8bf17136244a6716cb839e91b
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