|
@@ -170,6 +170,7 @@ static void frontswap_selfshrink(void)
|
|
tgt_frontswap_pages = cur_frontswap_pages -
|
|
tgt_frontswap_pages = cur_frontswap_pages -
|
|
(cur_frontswap_pages / frontswap_hysteresis);
|
|
(cur_frontswap_pages / frontswap_hysteresis);
|
|
frontswap_shrink(tgt_frontswap_pages);
|
|
frontswap_shrink(tgt_frontswap_pages);
|
|
|
|
+ frontswap_inertia_counter = frontswap_inertia;
|
|
}
|
|
}
|
|
|
|
|
|
#endif /* CONFIG_FRONTSWAP */
|
|
#endif /* CONFIG_FRONTSWAP */
|