diff options
author | Gao Xiang <hsiangkao@aol.com> | 2018-07-29 13:34:58 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-29 08:05:02 +0200 |
commit | 47e541a17ec7d64e19c11f59dfce314a89f1b228 (patch) | |
tree | 708e2e125b6c279a3438d81d5d7f2cf7f2875bfa /drivers/staging/erofs/utils.c | |
parent | 6d4abf1c0e265d8e99c155b91c1cf44e37793e53 (diff) |
staging: erofs: fix compile error without built-in decompression support
This patch fixes incorrect code snippets due to spilt code
into small patches by mistake.
Link: https://lists.01.org/pipermail/kbuild-all/2018-July/050747.html
Link: https://lists.01.org/pipermail/kbuild-all/2018-July/050750.html
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/erofs/utils.c')
-rw-r--r-- | drivers/staging/erofs/utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/erofs/utils.c b/drivers/staging/erofs/utils.c index ee70bb9e1636..595cf90af9bb 100644 --- a/drivers/staging/erofs/utils.c +++ b/drivers/staging/erofs/utils.c @@ -160,7 +160,7 @@ skip: } #ifdef EROFS_FS_HAS_MANAGED_CACHE - if (try_to_free_all_cached_pages(sbi, grp)) + if (erofs_try_to_free_all_cached_pages(sbi, grp)) goto skip; erofs_workgroup_unfreeze(grp, 1); @@ -247,7 +247,9 @@ unsigned long erofs_shrink_scan(struct shrinker *shrink, spin_unlock(&erofs_sb_list_lock); sbi->shrinker_run_no = run_no; - /* add scan handlers here */ +#ifdef CONFIG_EROFS_FS_ZIP + freed += erofs_shrink_workstation(sbi, nr, false); +#endif spin_lock(&erofs_sb_list_lock); /* Get the next list element before we move this one */ @@ -260,7 +262,6 @@ unsigned long erofs_shrink_scan(struct shrinker *shrink, list_move_tail(&sbi->list, &erofs_sb_list); mutex_unlock(&sbi->umount_mutex); - freed += erofs_shrink_workstation(sbi, nr, false); if (freed >= nr) break; } |