Lines Matching refs:entry

352  *  200 entry array for that.
2041 INIT_LIST_HEAD(&owait.wait.entry);
3329 * @entry: swap entry to be moved
3330 * @from: mem_cgroup which the entry is moved from
3331 * @to: mem_cgroup which the entry is moved to
3333 * It succeeds only when the swap_cgroup's record for this entry is the same
3341 static int mem_cgroup_move_swap_account(swp_entry_t entry,
3349 if (swap_cgroup_cmpxchg(entry, old_id, new_id) == old_id) {
3357 static inline int mem_cgroup_move_swap_account(swp_entry_t entry,
5678 pte_t ptent, swp_entry_t *entry)
5689 * as special swap entry in the CPU page table.
5710 entry->val = ent.val;
5716 pte_t ptent, swp_entry_t *entry)
5723 unsigned long addr, pte_t ptent, swp_entry_t *entry)
5869 * 2(MC_TARGET_SWAP): if the swap entry corresponding to this pte is a
5870 * target for charge migration. if @target is not NULL, the entry is stored
5916 * There is a swap entry and a page doesn't exist or isn't charged.
6938 swp_entry_t entry = { .val = page_private(page) };
6940 * The swap entry might not get freed for a long time,
6942 * memory+swap charge, drop the swap entry duplicate.
6944 mem_cgroup_uncharge_swap(entry, nr_pages);
7304 * @entry: swap entry to move the charge to
7306 * Transfer the memsw charge of @page to @entry.
7308 void mem_cgroup_swapout(struct page *page, swp_entry_t entry)
7336 oldid = swap_cgroup_record(entry, mem_cgroup_id(swap_memcg),
7368 * @entry: swap entry to charge
7370 * Try to charge @page's memcg for the swap space at @entry.
7374 int mem_cgroup_try_charge_swap(struct page *page, swp_entry_t entry)
7390 if (!entry.val) {
7408 oldid = swap_cgroup_record(entry, mem_cgroup_id(memcg), nr_pages);
7417 * @entry: swap entry to uncharge
7420 void mem_cgroup_uncharge_swap(swp_entry_t entry, unsigned int nr_pages)
7425 id = swap_cgroup_record(entry, 0, nr_pages);