Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 6 files:

Smatch caller information:

mm/userfaultfd.c move_pages_ptes() -> swap_cache_get_folio()

Type Parameter Key Value
DATA_SOURCE 0 entry r softleaf_from_pte
LOCK2 &ctx->map_changing_lock
LOCK2 rcu_read
TYPE_LOCK (struct userfaultfd_ctx)->map_changing_lock

mm/swapfile.c __try_to_reclaim_swap() -> swap_cache_get_folio()

Type Parameter Key Value
DATA_SOURCE 0 entry r swp_entry
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &system_transition_mutex

mm/swapfile.c try_to_unuse() -> swap_cache_get_folio()

Type Parameter Key Value
DATA_SOURCE 0 entry r swp_entry
CAPABLE 0 21

mm/swapfile.c unuse_pte_range() -> swap_cache_get_folio()

Type Parameter Key Value
DATA_SOURCE 0 entry r softleaf_from_pte
CAPABLE 0 21
LOCK2 &mm->mmap_lock
TYPE_LOCK (struct mm_struct)->mmap_lock

mm/shmem.c shmem_swapin_folio() -> swap_cache_get_folio()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

mm/memory.c do_swap_page() -> swap_cache_get_folio()

Type Parameter Key Value
DATA_SOURCE 0 entry r softleaf_from_pte
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

mm/mincore.c mincore_swap() -> swap_cache_get_folio()

Type Parameter Key Value
DATA_SOURCE 0 entry $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 ptl

mm/swap_state.c swap_cache_read_folio() -> swap_cache_get_folio()

Type Parameter Key Value
DATA_SOURCE 0 entry $1
RX_PATH
TASK_NOT_RUNNING

mm/swap_state.c swapin_sync() -> swap_cache_get_folio()

Type Parameter Key Value
DATA_SOURCE 0 entry $0
RX_PATH
TASK_NOT_RUNNING