diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-08-21 12:43:49 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-30 12:27:56 +0100 |
commit | 1efb72a3c3ea8e430d1984774692ecbe3235600a (patch) | |
tree | a1931a745d6a5a70bd15239f35bd57849bf72e50 /fs/btrfs/extent-tree.c | |
parent | 8c70c9f81eac82f497a37e901fb09c1cc2f0733f (diff) |
btrfs: Rework error handling of add_extent_mapping in __btrfs_alloc_chunk
Currently the code executes add_extent_mapping and if it is successful
it links the new mapping, it then proceeds to unlock the extent mapping
tree and check for failure and handle them. Instead, rework the code to
only perform a single check if add_extent_mapping has failed and handle
it, otherwise the code continues in a linear fashion. No functional
changes
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions