diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2018-04-11 11:21:19 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:07:16 +0200 |
| commit | 57f1642ec36ac7c3d54f317a2f4882f39aa9ded1 (patch) | |
| tree | 282ee278af32801674291de04fbab6ad5895aa42 /include/trace | |
| parent | btrfs: Fix lock release order (diff) | |
| download | linux-57f1642ec36ac7c3d54f317a2f4882f39aa9ded1.tar.gz linux-57f1642ec36ac7c3d54f317a2f4882f39aa9ded1.zip | |
btrfs: Consolidate error checking for btrfs_alloc_chunk
The second if is really a subcase of ret being less than 0. So
introduce a generic if (ret < 0) check, and inside have another if
which explicitly handles the -ENOSPC and any other errors. No
functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions
