Lines Matching defs:new
51 long new;
53 new = atomic_long_sub_return(nr_pages, &counter->usage);
55 if (WARN_ONCE(new < 0, "page_counter underflow: %ld nr_pages=%lu\n",
56 new, nr_pages)) {
57 new = 0;
58 atomic_long_set(&counter->usage, new);
60 propagate_protected_usage(counter, new);
75 long new;
77 new = atomic_long_add_return(nr_pages, &c->usage);
78 propagate_protected_usage(c, new);
83 if (new > READ_ONCE(c->watermark))
84 WRITE_ONCE(c->watermark, new);
104 long new;
116 * we either see the new limit or the setter sees the
119 new = atomic_long_add_return(nr_pages, &c->usage);
120 if (new > c->max) {
131 propagate_protected_usage(c, new);
136 if (new > READ_ONCE(c->watermark))
137 WRITE_ONCE(c->watermark, new);