Lines Matching refs:entry

2042 	INIT_LIST_HEAD(&owait.wait.entry);
3465 * @entry: swap entry to be moved
3466 * @from: mem_cgroup which the entry is moved from
3467 * @to: mem_cgroup which the entry is moved to
3469 * It succeeds only when the swap_cgroup's record for this entry is the same
3477 static int mem_cgroup_move_swap_account(swp_entry_t entry,
3485 if (swap_cgroup_cmpxchg(entry, old_id, new_id) == old_id) {
3493 static inline int mem_cgroup_move_swap_account(swp_entry_t entry,
5763 pte_t ptent, swp_entry_t *entry)
5790 entry->val = ent.val;
5796 pte_t ptent, swp_entry_t *entry)
5956 * * MC_TARGET_SWAP - If the swap entry corresponding to this pte is a
5957 * target for charge migration. If @target is not NULL, the entry is
6028 * There is a swap entry and a page doesn't exist or isn't charged.
7103 * @entry: swap entry for which the folio is allocated
7111 gfp_t gfp, swp_entry_t entry)
7120 id = lookup_swap_cgroup_id(entry);
7135 * @entry: swap entry for which the page is charged
7142 void mem_cgroup_swapin_uncharge_swap(swp_entry_t entry)
7158 * The swap entry might not get freed for a long time,
7160 * memory+swap charge, drop the swap entry duplicate.
7162 mem_cgroup_uncharge_swap(entry, 1);
7510 * @entry: swap entry to move the charge to
7512 * Transfer the memsw charge of @folio to @entry.
7514 void mem_cgroup_swapout(struct folio *folio, swp_entry_t entry)
7545 oldid = swap_cgroup_record(entry, mem_cgroup_id(swap_memcg),
7578 * @entry: swap entry to charge
7580 * Try to charge @folio's memcg for the swap space at @entry.
7584 int __mem_cgroup_try_charge_swap(struct folio *folio, swp_entry_t entry)
7600 if (!entry.val) {
7618 oldid = swap_cgroup_record(entry, mem_cgroup_id(memcg), nr_pages);
7627 * @entry: swap entry to uncharge
7630 void __mem_cgroup_uncharge_swap(swp_entry_t entry, unsigned int nr_pages)
7635 id = swap_cgroup_record(entry, 0, nr_pages);