|
@@ -3763,7 +3763,7 @@ move_account:
|
|
|
goto try_to_free;
|
|
|
cond_resched();
|
|
|
/* "ret" should also be checked to ensure all lists are empty. */
|
|
|
- } while (memcg->res.usage > 0 || ret);
|
|
|
+ } while (res_counter_read_u64(&memcg->res, RES_USAGE) > 0 || ret);
|
|
|
out:
|
|
|
css_put(&memcg->css);
|
|
|
return ret;
|
|
@@ -3778,7 +3778,7 @@ try_to_free:
|
|
|
lru_add_drain_all();
|
|
|
/* try to free all pages in this cgroup */
|
|
|
shrink = 1;
|
|
|
- while (nr_retries && memcg->res.usage > 0) {
|
|
|
+ while (nr_retries && res_counter_read_u64(&memcg->res, RES_USAGE) > 0) {
|
|
|
int progress;
|
|
|
|
|
|
if (signal_pending(current)) {
|