Lines Matching refs:new
51 long new; in page_counter_cancel() local
53 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel()
55 if (WARN_ONCE(new < 0, "page_counter underflow: %ld nr_pages=%lu\n", in page_counter_cancel()
56 new, nr_pages)) { in page_counter_cancel()
57 new = 0; in page_counter_cancel()
58 atomic_long_set(&counter->usage, new); in page_counter_cancel()
60 propagate_protected_usage(counter, new); in page_counter_cancel()
75 long new; in page_counter_charge() local
77 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge()
78 propagate_protected_usage(c, new); in page_counter_charge()
83 if (new > READ_ONCE(c->watermark)) in page_counter_charge()
84 WRITE_ONCE(c->watermark, new); in page_counter_charge()
104 long new; in page_counter_try_charge() local
119 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge()
120 if (new > c->max) { in page_counter_try_charge()
131 propagate_protected_usage(c, new); in page_counter_try_charge()
136 if (new > READ_ONCE(c->watermark)) in page_counter_try_charge()
137 WRITE_ONCE(c->watermark, new); in page_counter_try_charge()