staging: erofs: move shrink accounting inside the function
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 16 Jan 2019 13:10:10 +0000 (21:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 09:37:16 +0000 (10:37 +0100)
commit4501ca36bc18ee73a3e88373ff50c22233b82324
tree7dadbd3c566a27f61a1c0a3274d066a339652ec5
parentd60eff4396f1f7423945f01acc274043c1370bc7
staging: erofs: move shrink accounting inside the function

This patch moves the &erofs_global_shrink_cnt accounting
from the caller to erofs_workgroup_get().  It's cleaner and
it matches erofs_workgroup_put() better. No behavior change.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/utils.c