Searched refs:stock_pages (Results 1 – 1 of 1) sorted by relevance
1735 unsigned int stock_pages; in consume_stock() local1745 stock_pages = READ_ONCE(stock->nr_pages); in consume_stock()1746 if (memcg == READ_ONCE(stock->cached) && stock_pages >= nr_pages) { in consume_stock()1747 WRITE_ONCE(stock->nr_pages, stock_pages - nr_pages); in consume_stock()1761 unsigned int stock_pages = READ_ONCE(stock->nr_pages); in drain_stock() local1767 if (stock_pages) { in drain_stock()1768 page_counter_uncharge(&old->memory, stock_pages); in drain_stock()1770 page_counter_uncharge(&old->memsw, stock_pages); in drain_stock()1808 unsigned int stock_pages; in __refill_stock() local1816 stock_pages = READ_ONCE(stock->nr_pages) + nr_pages; in __refill_stock()[all …]