Lines Matching refs:usage
320 unsigned long usage =
321 h_cg->nodeinfo[folio_nid(folio)]->usage[idx];
323 * This write is not atomic due to fetching usage and writing
327 WRITE_ONCE(h_cg->nodeinfo[folio_nid(folio)]->usage[idx],
328 usage + nr_pages);
369 unsigned long usage =
370 h_cg->nodeinfo[folio_nid(folio)]->usage[idx];
372 * This write is not atomic due to fetching usage and writing
376 WRITE_ONCE(h_cg->nodeinfo[folio_nid(folio)]->usage[idx],
377 usage - nr_pages);
475 unsigned long usage;
478 /* Add up usage across all nodes for the non-hierarchical total. */
479 usage = 0;
481 usage += READ_ONCE(h_cg->nodeinfo[nid]->usage[idx]);
482 seq_printf(seq, "total=%lu", usage * PAGE_SIZE);
484 /* Simply print the per-node usage for the non-hierarchical total. */
487 READ_ONCE(h_cg->nodeinfo[nid]->usage[idx]) *
501 * node usage.
504 usage = 0;
507 usage += READ_ONCE(hugetlb_cgroup_from_css(css)
509 ->usage[idx]);
512 seq_printf(seq, " N%d=%lu", nid, usage * PAGE_SIZE);
739 /* Add the current usage file */
746 /* Add the current reservation usage file */
808 /* Add the usage file */
814 /* Add the reservation usage file */
820 /* Add the MAX usage file */
827 /* Add the MAX reservation usage file */