Skip to content

Commit 987f437

Browse files
fdmananakdave
authored andcommitted
btrfs: qgroup: remove redundant check for add_qgroup_rb() call
The add_qgroup_rb() function never returns an error pointer anymore since commit 8d54518 ("btrfs: qgroup: pre-allocate btrfs_qgroup to reduce GFP_ATOMIC usage"), so checking for an error pointer result at btrfs_quota_enable() is redundant. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent b8b432c commit 987f437

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/btrfs/qgroup.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,11 +1161,6 @@ int btrfs_quota_enable(struct btrfs_fs_info *fs_info,
11611161

11621162
qgroup = add_qgroup_rb(fs_info, prealloc, found_key.offset);
11631163
prealloc = NULL;
1164-
if (IS_ERR(qgroup)) {
1165-
ret = PTR_ERR(qgroup);
1166-
btrfs_abort_transaction(trans, ret);
1167-
goto out_free_path;
1168-
}
11691164
ret = btrfs_sysfs_add_one_qgroup(fs_info, qgroup);
11701165
if (ret < 0) {
11711166
btrfs_abort_transaction(trans, ret);

0 commit comments

Comments
 (0)