diff options
author | Sidong Yang | 2022-02-06 12:52:48 +0000 |
---|---|---|
committer | David Sterba | 2022-03-14 13:13:50 +0100 |
commit | a8f6f619e44402f7005da79470835b98dc88450f (patch) | |
tree | 3aa02a886bbf42bf0074fc954de3f2c6e1d28998 /fs/fuse/inode.c | |
parent | dc4a4bdb3f22f9a97a59cdf3c6a1257435ff3700 (diff) |
btrfs: qgroup: remove duplicated check in adding qgroup relations
Removes duplicated check when adding qgroup relations.
btrfs_add_qgroup_relations function adds relations by calling
add_relation_rb(). add_relation_rb() checks that member/parentid exists
in current qgroup_tree. But it already checked before calling the
function. It seems that we don't need to double check.
Add new function __add_relation_rb() that adds relations with
qgroup structures and makes old function use the new one. And it makes
btrfs_add_qgroup_relation() function work without double checks by
calling the new function.
Signed-off-by: Sidong Yang <realwakka@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add comments ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/fuse/inode.c')
0 files changed, 0 insertions, 0 deletions