]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: have proper error handling in btrfs_init_reloc_root
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:13 +0000 (15:25 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Apr 2021 17:45:51 +0000 (19:45 +0200)
commit23e7ed56df0e5afc4758fa31c3ecb09bce41ec2b
treedf1ff586f102d00983881cead0900319402eea6f
parent9c884048765c8dab77a3b9adcccb9f638adf499e
btrfs: have proper error handling in btrfs_init_reloc_root

create_reloc_root will return errors in the future, and __add_reloc_root
can return ENOMEM or EEXIST, so handle these errors properly.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c