Home
last modified time | relevance | path

Searched refs:si (Results 1 – 4 of 4) sorted by relevance

/mm/
Dswapfile.c96 __try_to_reclaim_swap(struct swap_info_struct *si, unsigned long offset) in __try_to_reclaim_swap() argument
98 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap()
124 static int discard_swap(struct swap_info_struct *si) in discard_swap() argument
132 se = &si->first_swap_extent; in discard_swap()
136 err = blkdev_issue_discard(si->bdev, start_block, in discard_swap()
143 list_for_each_entry(se, &si->first_swap_extent.list, list) { in discard_swap()
147 err = blkdev_issue_discard(si->bdev, start_block, in discard_swap()
161 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster() argument
164 struct swap_extent *se = si->curr_swap_extent; in discard_swap_cluster()
182 si->curr_swap_extent = se; in discard_swap_cluster()
[all …]
Dfrontswap.c333 struct swap_info_struct *si = NULL; in __frontswap_curr_pages() local
336 plist_for_each_entry(si, &swap_active_head, list) in __frontswap_curr_pages()
337 totalpages += atomic_read(&si->frontswap_pages); in __frontswap_curr_pages()
345 struct swap_info_struct *si = NULL; in __frontswap_unuse_pages() local
351 plist_for_each_entry(si, &swap_active_head, list) { in __frontswap_unuse_pages()
352 si_frontswap_pages = atomic_read(&si->frontswap_pages); in __frontswap_unuse_pages()
366 *swapid = si->type; in __frontswap_unuse_pages()
Dmemory-failure.c193 struct siginfo si; in kill_proc() local
199 si.si_signo = SIGBUS; in kill_proc()
200 si.si_errno = 0; in kill_proc()
201 si.si_addr = (void *)addr; in kill_proc()
203 si.si_trapno = trapno; in kill_proc()
205 si.si_addr_lsb = compound_order(compound_head(page)) + PAGE_SHIFT; in kill_proc()
208 si.si_code = BUS_MCEERR_AR; in kill_proc()
209 ret = force_sig_info(SIGBUS, &si, current); in kill_proc()
217 si.si_code = BUS_MCEERR_AO; in kill_proc()
218 ret = send_sig_info(SIGBUS, &si, t); /* synchronous? */ in kill_proc()
Dslub.c219 static inline void stat(const struct kmem_cache *s, enum stat_item si) in stat() argument
226 raw_cpu_inc(s->cpu_slab->stat[si]); in stat()
4794 static int show_stat(struct kmem_cache *s, char *buf, enum stat_item si) in show_stat() argument
4805 unsigned x = per_cpu_ptr(s->cpu_slab, cpu)->stat[si]; in show_stat()
4823 static void clear_stat(struct kmem_cache *s, enum stat_item si) in clear_stat() argument
4828 per_cpu_ptr(s->cpu_slab, cpu)->stat[si] = 0; in clear_stat()
4831 #define STAT_ATTR(si, text) \ argument
4834 return show_stat(s, buf, si); \
4841 clear_stat(s, si); \