On 24.01.23 10:21, nb wrote:
@@ -2260,9 +2263,16 @@ static bool consume_stock(struct mem_cgroup
*memcg, unsigned int nr_pages)
local_lock_irqsave(&memcg_stock.stock_lock, flags);
stock = this_cpu_ptr(&memcg_stock);
- if (memcg == stock->cached && stock->nr_pages >= nr_pages) {
-
On 20.01.23 г. 14:39 ч., Alexander Atanasov wrote:
From: Andrey Ryabinin
Forward port feature: mm: per memory cgroup page cache limit.
The original implementation consisted of these commits:
commit 758d52e33a67 ("configs: Enable CONFIG_PAGE_EXTENSION")
commit 741beaa93c89 ("mm: introduce pag