Home
last modified time | relevance | path

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

/mm/
Dswapfile.c127 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap() argument
130 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap()
171 static int discard_swap(struct swap_info_struct *si) in discard_swap() argument
179 se = first_se(si); in discard_swap()
183 err = blkdev_issue_discard(si->bdev, start_block, in discard_swap()
194 err = blkdev_issue_discard(si->bdev, start_block, in discard_swap()
228 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster() argument
231 struct swap_extent *se = offset_to_swap_extent(si, start_page); in discard_swap_cluster()
245 if (blkdev_issue_discard(si->bdev, start_block, in discard_swap_cluster()
338 static inline struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, in lock_cluster() argument
[all …]
Dfrontswap.c117 struct swap_info_struct *si; in frontswap_register_ops() local
124 plist_for_each_entry(si, &swap_active_head, list) { in frontswap_register_ops()
125 if (!WARN_ON(!si->frontswap_map)) in frontswap_register_ops()
126 set_bit(si->type, a); in frontswap_register_ops()
146 plist_for_each_entry(si, &swap_active_head, list) { in frontswap_register_ops()
147 if (si->frontswap_map) in frontswap_register_ops()
148 set_bit(si->type, b); in frontswap_register_ops()
374 struct swap_info_struct *si = NULL; in __frontswap_curr_pages() local
377 plist_for_each_entry(si, &swap_active_head, list) in __frontswap_curr_pages()
378 totalpages += atomic_read(&si->frontswap_pages); in __frontswap_curr_pages()
[all …]
Dswap_state.c76 struct swap_info_struct *si; in total_swapcache_pages() local
85 si = get_swap_device(entry); in total_swapcache_pages()
86 if (!si) in total_swapcache_pages()
92 put_swap_device(si); in total_swapcache_pages()
314 struct swap_info_struct *si; in lookup_swap_cache() local
316 si = get_swap_device(entry); in lookup_swap_cache()
317 if (!si) in lookup_swap_cache()
320 put_swap_device(si); in lookup_swap_cache()
364 struct swap_info_struct *si; in __read_swap_cache_async() local
374 si = get_swap_device(entry); in __read_swap_cache_async()
[all …]
Dmincore.c71 struct swap_info_struct *si; in mincore_page() local
74 si = get_swap_device(swp); in mincore_page()
75 if (si) { in mincore_page()
78 put_swap_device(si); in mincore_page()
Dslub.c229 static inline void stat(const struct kmem_cache *s, enum stat_item si) in stat() argument
236 raw_cpu_inc(s->cpu_slab->stat[si]); in stat()
5342 static int show_stat(struct kmem_cache *s, char *buf, enum stat_item si) in show_stat() argument
5353 unsigned x = per_cpu_ptr(s->cpu_slab, cpu)->stat[si]; in show_stat()
5371 static void clear_stat(struct kmem_cache *s, enum stat_item si) in clear_stat() argument
5376 per_cpu_ptr(s->cpu_slab, cpu)->stat[si] = 0; in clear_stat()
5379 #define STAT_ATTR(si, text) \ argument
5382 return show_stat(s, buf, si); \
5389 clear_stat(s, si); \
Dmemory.c2807 struct swap_info_struct *si = swp_swap_info(entry); in do_swap_page() local
2809 if (si->flags & SWP_SYNCHRONOUS_IO && in do_swap_page()