]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: erofs: redefine where `owned_workgrp_t' points
authorGao Xiang <gaoxiang25@huawei.com>
Fri, 7 Dec 2018 16:19:17 +0000 (00:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Dec 2018 16:10:48 +0000 (17:10 +0100)
commit6afd227ca179b33ca4437502ac8847df9c43aef9
treebde0883ae0deac33a5c26fd3a2d6f848b36b78b9
parent92e6efd566c4a15de9b0ad3e7954448b1ad66f42
staging: erofs: redefine where `owned_workgrp_t' points

By design, workgroups are queued in the form of linked lists.

Previously, it points to the next `z_erofs_vle_workgroup',
which isn't flexible enough to simplify `z_erofs_vle_submit_all'.

Let's fix it by pointing to the next `owned_workgrp_t' and use
container_of to get its coresponding `z_erofs_vle_workgroup'.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/unzip_vle.c
drivers/staging/erofs/unzip_vle.h