kswapd_highest_zoneidx
enum zone_type kswapd_highest_zoneidx;
pgdat->kswapd_highest_zoneidx = 0;
WARN_ON(pgdat->nr_zones || pgdat->kswapd_highest_zoneidx);
if (READ_ONCE(pgdat->kswapd_highest_zoneidx) > ZONE_NORMAL)
WRITE_ONCE(pgdat->kswapd_highest_zoneidx, ZONE_NORMAL);
enum zone_type curr_idx = READ_ONCE(pgdat->kswapd_highest_zoneidx);
WRITE_ONCE(pgdat->kswapd_highest_zoneidx,
kswapd_highest_zoneidx(pgdat,
WRITE_ONCE(pgdat->kswapd_highest_zoneidx, MAX_NR_ZONES);
highest_zoneidx = kswapd_highest_zoneidx(pgdat,
highest_zoneidx = kswapd_highest_zoneidx(pgdat,
WRITE_ONCE(pgdat->kswapd_highest_zoneidx, MAX_NR_ZONES);
curr_idx = READ_ONCE(pgdat->kswapd_highest_zoneidx);
WRITE_ONCE(pgdat->kswapd_highest_zoneidx, highest_zoneidx);