|
@@ -160,7 +160,7 @@ skip:
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef EROFS_FS_HAS_MANAGED_CACHE
|
|
#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;
|
|
goto skip;
|
|
|
|
|
|
erofs_workgroup_unfreeze(grp, 1);
|
|
erofs_workgroup_unfreeze(grp, 1);
|
|
@@ -247,7 +247,9 @@ unsigned long erofs_shrink_scan(struct shrinker *shrink,
|
|
spin_unlock(&erofs_sb_list_lock);
|
|
spin_unlock(&erofs_sb_list_lock);
|
|
sbi->shrinker_run_no = run_no;
|
|
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);
|
|
spin_lock(&erofs_sb_list_lock);
|
|
/* Get the next list element before we move this one */
|
|
/* 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);
|
|
list_move_tail(&sbi->list, &erofs_sb_list);
|
|
mutex_unlock(&sbi->umount_mutex);
|
|
mutex_unlock(&sbi->umount_mutex);
|
|
|
|
|
|
- freed += erofs_shrink_workstation(sbi, nr, false);
|
|
|
|
if (freed >= nr)
|
|
if (freed >= nr)
|
|
break;
|
|
break;
|
|
}
|
|
}
|