erofs: remove unused tag argument while registering a workgroup
All workgroups are registered with tag value set to 0, to simplify erofs_register_workgroup() interface the tag argument can be removed, if its only value is sent down to the function body. Signed-off-by: Vladimir Zapolskiy <vladimir@tuxera.com> Link: https://lore.kernel.org/r/20200102120118.14979-3-vladimir@tuxera.com Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
This commit is contained in:

committed by
Gao Xiang

parent
997626d838
commit
e5e9a43203
@@ -83,8 +83,7 @@ repeat:
|
||||
}
|
||||
|
||||
int erofs_register_workgroup(struct super_block *sb,
|
||||
struct erofs_workgroup *grp,
|
||||
bool tag)
|
||||
struct erofs_workgroup *grp)
|
||||
{
|
||||
struct erofs_sb_info *sbi;
|
||||
int err;
|
||||
@@ -102,7 +101,7 @@ int erofs_register_workgroup(struct super_block *sb,
|
||||
sbi = EROFS_SB(sb);
|
||||
xa_lock(&sbi->workstn_tree);
|
||||
|
||||
grp = xa_tag_pointer(grp, tag);
|
||||
grp = xa_tag_pointer(grp, 0);
|
||||
|
||||
/*
|
||||
* Bump up reference count before making this workgroup
|
||||
|
Reference in New Issue
Block a user