reclaim_state
struct reclaim_state *reclaim_state;
struct reclaim_state;
if (current->reclaim_state)
current->reclaim_state->reclaimed += pages;
struct reclaim_state reclaim_state;
struct reclaim_state *rs)
WARN_ON_ONCE(rs && task->reclaim_state);
WARN_ON_ONCE(!rs && !task->reclaim_state);
task->reclaim_state = rs;
if (current->reclaim_state && root_reclaim(sc)) {
sc->nr_reclaimed += current->reclaim_state->reclaimed;
current->reclaim_state->reclaimed = 0;
struct lru_gen_mm_walk *walk = current->reclaim_state->mm_walk;
current->reclaim_state->mm_walk = walk;
struct lru_gen_mm_walk *walk = current->reclaim_state->mm_walk;
current->reclaim_state->mm_walk = NULL;
walk = current->reclaim_state ? current->reclaim_state->mm_walk : NULL;
walk = current->reclaim_state->mm_walk;
set_task_reclaim_state(current, &sc.reclaim_state);
set_task_reclaim_state(current, &sc.reclaim_state);
WARN_ON_ONCE(!current->reclaim_state);
set_task_reclaim_state(current, &sc.reclaim_state);
set_task_reclaim_state(current, &sc.reclaim_state);
set_task_reclaim_state(current, &sc.reclaim_state);
set_task_reclaim_state(p, &sc->reclaim_state);