Skip to content

Commit e9f3847

Browse files
Gao Xianggregkh
authored andcommitted
erofs: correct the remaining shrink objects
commit 9d5a09c upstream. The remaining count should not include successful shrink attempts. Fixes: e7e9a30 ("staging: erofs: introduce workstation for decompression") Cc: <stable@vger.kernel.org> # 4.19+ Link: https://lore.kernel.org/r/20200226081008.86348-1-gaoxiang25@huawei.com Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0f69d6c commit e9f3847

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/erofs/utils.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static unsigned long erofs_shrink_scan(struct shrinker *shrink,
293293
spin_unlock(&erofs_sb_list_lock);
294294
sbi->shrinker_run_no = run_no;
295295

296-
freed += erofs_shrink_workstation(sbi, nr);
296+
freed += erofs_shrink_workstation(sbi, nr - freed);
297297

298298
spin_lock(&erofs_sb_list_lock);
299299
/* Get the next list element before we move this one */

0 commit comments

Comments
 (0)