• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/mm/

Lines Matching refs:charge

555 					 bool charge)
557 int val = (charge) ? 1 : -1;
563 bool charge)
565 int val = (charge) ? 1 : -1;
574 if (charge)
709 * 1. charge
711 * In typical case, "charge" is done before add-to-lru. Exception is SwapCache.
712 * It is added to LRU before charge.
796 * SwapCache behavior).To handle that, unlink page_cgroup from LRU when charge
797 * it again. This function is only used to charge SwapCache. It's done under
1086 /* moving charge context might have finished. */
1433 * Even if signal_pending(), we can't quit charge() loop without
1497 * size of first charge trial. "32" comes from vmscan.c's magic value.
1503 int charge;
1510 * Try to consume stocked charge on this cpu. If success, PAGE_SIZE is consumed
1521 if (mem == stock->cached && stock->charge)
1522 stock->charge -= PAGE_SIZE;
1536 if (stock->charge) {
1537 res_counter_uncharge(&old->res, stock->charge);
1539 res_counter_uncharge(&old->memsw, stock->charge);
1542 stock->charge = 0;
1567 stock->charge += val;
1675 * At task move, charge accounts can be doubly counted. So, it's
1713 * We always charge the cgroup the mm_struct belongs to.
1716 * set, if so charge the init_mm (happens for pagecache usage).
1741 * (*) swapoff at el will charge against mm-struct not against
1772 /* If killed, bypass charge */
1826 * Somemtimes we have to undo a charge we got by try_charge().
1893 * commit a charge got by __mem_cgroup_try_charge() and makes page_cgroup to be
1957 * This function doesn't do "charge" nor css_get to new cgroup. It should be
1990 * this function is just force_empty() and move charge, so it's
2061 * 0 if the charge was successful
2127 * charge twice. (It works but has to pay a bit larger cost.)
2189 * KSM case which does need to charge the page.
2249 * At swapin, we may charge account against cgroup which has no tasks.
2250 * So, rmdir()->pre_destroy() can be called while we do this charge.
2306 /* remember freed charge and uncharge it later */
2514 * mem_cgroup_move_swap_account - move swap charge and swap_cgroup's record.
2610 * remaps it. A charge for it is kept by MIGRATION flag even
2647 * We charge new page before it's used/mapped. So, even if unlock_page()
2663 /* remove redundant charge if migration failed*/
2705 * At migration, we may charge account against cgroup which has no
2707 * So, rmdir()->pre_destroy() can be called while we do this charge.
2714 * A call to try to shrink memory usage on charge failure at shmem's swapin.
3014 * make mem_cgroup's charge to be 0 if there is no task.
4229 /* Handlers for move charge at task migration. */
4242 /* try to charge at once */
4262 /* fall back to one by one charge */
4282 * is_target_pte_for_mc - check a pte whether it is valid for move charge
4289 * 0(MC_TARGET_NONE): if the pte is not a target for move charge.
4291 * move charge. if @target is not NULL, the page is stored in target->page
4294 * target for charge migration. if @target is not NULL, the entry is stored
4546 * We do all the move charge works under one mmap_sem to
4646 * We try charge one by one, but don't do any additional
4647 * charges to mc.to if we have failed in charge once in attach()
4678 * doing additional charge. Just abandon here.
4691 /* no need to move charge */