/linux-6.6.21/mm/ |
D | swap.c | 81 static void __page_cache_release(struct folio *folio) in __page_cache_release() 102 static void __folio_put_small(struct folio *folio) in __folio_put_small() 109 static void __folio_put_large(struct folio *folio) in __folio_put_large() 122 void __folio_put(struct folio *folio) in __folio_put() 141 struct folio *folio, *next; in put_pages_list() local 163 static void lru_add_fn(struct lruvec *lruvec, struct folio *folio) in lru_add_fn() 210 struct folio *folio = fbatch->folios[i]; in folio_batch_move_lru() local 229 struct folio *folio, move_fn_t move_fn) in folio_batch_add_and_move() 237 static void lru_move_tail_fn(struct lruvec *lruvec, struct folio *folio) in lru_move_tail_fn() 254 void folio_rotate_reclaimable(struct folio *folio) in folio_rotate_reclaimable() [all …]
|
D | filemap.c | 127 struct folio *folio, void *shadow) in page_cache_delete() 151 struct folio *folio) in filemap_unaccount_folio() 219 void __filemap_remove_folio(struct folio *folio, void *shadow) in __filemap_remove_folio() 228 void filemap_free_folio(struct address_space *mapping, struct folio *folio) in filemap_free_folio() 250 void filemap_remove_folio(struct folio *folio) in filemap_remove_folio() 285 struct folio *folio; in page_cache_delete_batch() local 331 struct folio *folio = fbatch->folios[i]; in delete_from_page_cache_batch() local 475 struct folio *folio; in filemap_range_has_page() local 523 struct folio *folio = fbatch.folios[i]; in __filemap_fdatawait_range() local 636 struct folio *folio; in filemap_range_has_writeback() local [all …]
|
D | rmap.c | 494 struct anon_vma *folio_get_anon_vma(struct folio *folio) in folio_get_anon_vma() 538 struct anon_vma *folio_lock_anon_vma_read(struct folio *folio, in folio_lock_anon_vma_read() 747 struct folio *folio = page_folio(page); in page_address_in_vma() local 804 static bool folio_referenced_one(struct folio *folio, in folio_referenced_one() 897 int folio_referenced(struct folio *folio, int is_locked, in folio_referenced() 997 static bool page_mkclean_one(struct folio *folio, struct vm_area_struct *vma, in page_mkclean_one() 1016 int folio_mkclean(struct folio *folio) in folio_mkclean() 1073 int folio_total_mapcount(struct folio *folio) in folio_total_mapcount() 1109 struct folio *folio = page_folio(page); in page_move_anon_rmap() local 1132 static void __page_set_anon_rmap(struct folio *folio, struct page *page, in __page_set_anon_rmap() [all …]
|
D | truncate.c | 83 struct folio *folio = fbatch->folios[i]; in truncate_folio_batch_exceptionals() local 153 void folio_invalidate(struct folio *folio, size_t offset, size_t length) in folio_invalidate() 172 static void truncate_cleanup_folio(struct folio *folio) in truncate_cleanup_folio() 189 int truncate_inode_folio(struct address_space *mapping, struct folio *folio) in truncate_inode_folio() 210 bool truncate_inode_partial_folio(struct folio *folio, loff_t start, loff_t end) in truncate_inode_partial_folio() 270 struct folio *folio) in mapping_evict_folio() 296 struct folio *folio = page_folio(page); in invalidate_inode_page() local 338 struct folio *folio; in truncate_inode_pages_range() local 414 struct folio *folio = fbatch.folios[i]; in truncate_inode_pages_range() local 510 struct folio *folio = fbatch.folios[i]; in mapping_try_invalidate() local [all …]
|
D | page_io.c | 32 struct folio *folio = bio_first_folio_all(bio); in __end_swap_bio_write() local 60 struct folio *folio = bio_first_folio_all(bio); in __end_swap_bio_read() local 181 struct folio *folio = page_folio(page); in swap_writepage() local 208 static inline void count_swpout_vm_event(struct folio *folio) in count_swpout_vm_event() 218 static void bio_associate_blkg_from_page(struct bio *bio, struct folio *folio) in bio_associate_blkg_from_page() 233 #define bio_associate_blkg_from_page(bio, folio) do { } while (0) argument 334 struct folio *folio = page_folio(page); in swap_writepage_bdev_sync() local 355 struct folio *folio = page_folio(page); in swap_writepage_bdev_async() local 408 struct folio *folio = page_folio(sio->bvec[p].bv_page); in sio_read_complete() local 416 struct folio *folio = page_folio(sio->bvec[p].bv_page); in sio_read_complete() local [all …]
|
D | swap.h | 60 static inline unsigned int folio_swap_flags(struct folio *folio) in folio_swap_flags() 117 static inline bool add_to_swap(struct folio *folio) in add_to_swap() 127 static inline int add_to_swap_cache(struct folio *folio, swp_entry_t entry, in add_to_swap_cache() 133 static inline void __delete_from_swap_cache(struct folio *folio, in __delete_from_swap_cache() 138 static inline void delete_from_swap_cache(struct folio *folio) in delete_from_swap_cache() 147 static inline unsigned int folio_swap_flags(struct folio *folio) in folio_swap_flags()
|
D | page_idle.c | 37 struct folio *folio; in page_idle_get_folio() local 52 static bool page_idle_clear_pte_refs_one(struct folio *folio, in page_idle_clear_pte_refs_one() 89 static void page_idle_clear_pte_refs(struct folio *folio) in page_idle_clear_pte_refs() 119 struct folio *folio; in page_idle_bitmap_read() local 164 struct folio *folio; in page_idle_bitmap_write() local
|
D | mlock.c | 61 static struct lruvec *__mlock_folio(struct folio *folio, struct lruvec *lruvec) in __mlock_folio() 103 static struct lruvec *__mlock_new_folio(struct folio *folio, struct lruvec *lruvec) in __mlock_new_folio() 122 static struct lruvec *__munlock_folio(struct folio *folio, struct lruvec *lruvec) in __munlock_folio() 169 static inline struct folio *mlock_lru(struct folio *folio) in mlock_lru() 174 static inline struct folio *mlock_new(struct folio *folio) in mlock_new() 190 struct folio *folio; in mlock_folio_batch() local 243 void mlock_folio(struct folio *folio) in mlock_folio() 268 void mlock_new_folio(struct folio *folio) in mlock_new_folio() 291 void munlock_folio(struct folio *folio) in munlock_folio() 316 struct folio *folio; in mlock_pte_range() local
|
/linux-6.6.21/include/linux/ |
D | page_idle.h | 16 static inline bool folio_test_young(struct folio *folio) in folio_test_young() 30 static inline void folio_set_young(struct folio *folio) in folio_set_young() 41 static inline bool folio_test_clear_young(struct folio *folio) in folio_test_clear_young() 55 static inline bool folio_test_idle(struct folio *folio) in folio_test_idle() 69 static inline void folio_set_idle(struct folio *folio) in folio_set_idle() 80 static inline void folio_clear_idle(struct folio *folio) in folio_clear_idle() 94 static inline bool folio_test_young(struct folio *folio) in folio_test_young() 99 static inline void folio_set_young(struct folio *folio) in folio_set_young() 103 static inline bool folio_test_clear_young(struct folio *folio) in folio_test_clear_young() 108 static inline bool folio_test_idle(struct folio *folio) in folio_test_idle() [all …]
|
D | page_ref.h | 87 static inline int folio_ref_count(const struct folio *folio) in folio_ref_count() 104 static inline void folio_set_count(struct folio *folio, int v) in folio_set_count() 125 static inline void folio_ref_add(struct folio *folio, int nr) in folio_ref_add() 137 static inline void folio_ref_sub(struct folio *folio, int nr) in folio_ref_sub() 151 static inline int folio_ref_sub_return(struct folio *folio, int nr) in folio_ref_sub_return() 163 static inline void folio_ref_inc(struct folio *folio) in folio_ref_inc() 175 static inline void folio_ref_dec(struct folio *folio) in folio_ref_dec() 189 static inline int folio_ref_sub_and_test(struct folio *folio, int nr) in folio_ref_sub_and_test() 203 static inline int folio_ref_inc_return(struct folio *folio) in folio_ref_inc_return() 217 static inline int folio_ref_dec_and_test(struct folio *folio) in folio_ref_dec_and_test() [all …]
|
D | hugetlb_cgroup.h | 68 __hugetlb_cgroup_from_folio(struct folio *folio, bool rsvd) in __hugetlb_cgroup_from_folio() 79 static inline struct hugetlb_cgroup *hugetlb_cgroup_from_folio(struct folio *folio) in hugetlb_cgroup_from_folio() 85 hugetlb_cgroup_from_folio_rsvd(struct folio *folio) in hugetlb_cgroup_from_folio_rsvd() 90 static inline void __set_hugetlb_cgroup(struct folio *folio, in __set_hugetlb_cgroup() 102 static inline void set_hugetlb_cgroup(struct folio *folio, in set_hugetlb_cgroup() 108 static inline void set_hugetlb_cgroup_rsvd(struct folio *folio, in set_hugetlb_cgroup_rsvd() 178 static inline struct hugetlb_cgroup *hugetlb_cgroup_from_folio(struct folio *folio) in hugetlb_cgroup_from_folio() 184 hugetlb_cgroup_from_folio_rsvd(struct folio *folio) in hugetlb_cgroup_from_folio_rsvd() 189 static inline void set_hugetlb_cgroup(struct folio *folio, in set_hugetlb_cgroup() 194 static inline void set_hugetlb_cgroup_rsvd(struct folio *folio, in set_hugetlb_cgroup_rsvd() [all …]
|
D | pagemap.h | 401 static inline struct address_space *folio_file_mapping(struct folio *folio) in folio_file_mapping() 421 static inline struct address_space *folio_flush_mapping(struct folio *folio) in folio_flush_mapping() 443 static inline struct inode *folio_inode(struct folio *folio) in folio_inode() 456 static inline void folio_attach_private(struct folio *folio, void *data) in folio_attach_private() 474 static inline void *folio_change_private(struct folio *folio, void *data) in folio_change_private() 491 static inline void *folio_detach_private(struct folio *folio) in folio_detach_private() 766 #define swapcache_index(folio) __page_file_index(&(folio)->page) argument 779 static inline pgoff_t folio_index(struct folio *folio) in folio_index() 792 static inline pgoff_t folio_next_index(struct folio *folio) in folio_next_index() 807 static inline struct page *folio_file_page(struct folio *folio, pgoff_t index) in folio_file_page() [all …]
|
D | mm_inline.h | 27 static inline int folio_is_file_lru(struct folio *folio) in folio_is_file_lru() 65 static __always_inline void __folio_clear_lru_flags(struct folio *folio) in __folio_clear_lru_flags() 86 static __always_inline enum lru_list folio_lru_list(struct folio *folio) in folio_lru_list() 143 static inline int folio_lru_refs(struct folio *folio) in folio_lru_refs() 157 static inline int folio_lru_gen(struct folio *folio) in folio_lru_gen() 174 static inline void lru_gen_update_size(struct lruvec *lruvec, struct folio *folio, in lru_gen_update_size() 220 static inline bool lru_gen_add_folio(struct lruvec *lruvec, struct folio *folio, bool reclaiming) in lru_gen_add_folio() 271 static inline bool lru_gen_del_folio(struct lruvec *lruvec, struct folio *folio, bool reclaiming) in lru_gen_del_folio() 305 static inline bool lru_gen_add_folio(struct lruvec *lruvec, struct folio *folio, bool reclaiming) in lru_gen_add_folio() 310 static inline bool lru_gen_del_folio(struct lruvec *lruvec, struct folio *folio, bool reclaiming) in lru_gen_del_folio() [all …]
|
D | vmstat.h | 418 static inline void __zone_stat_mod_folio(struct folio *folio, in __zone_stat_mod_folio() 424 static inline void __zone_stat_add_folio(struct folio *folio, in __zone_stat_add_folio() 430 static inline void __zone_stat_sub_folio(struct folio *folio, in __zone_stat_sub_folio() 436 static inline void zone_stat_mod_folio(struct folio *folio, in zone_stat_mod_folio() 442 static inline void zone_stat_add_folio(struct folio *folio, in zone_stat_add_folio() 448 static inline void zone_stat_sub_folio(struct folio *folio, in zone_stat_sub_folio() 454 static inline void __node_stat_mod_folio(struct folio *folio, in __node_stat_mod_folio() 460 static inline void __node_stat_add_folio(struct folio *folio, in __node_stat_add_folio() 466 static inline void __node_stat_sub_folio(struct folio *folio, in __node_stat_sub_folio() 472 static inline void node_stat_mod_folio(struct folio *folio, in node_stat_mod_folio() [all …]
|
D | huge_mm.h | 216 static inline bool folio_test_pmd_mappable(struct folio *folio) in folio_test_pmd_mappable() 265 static inline bool folio_test_pmd_mappable(struct folio *folio) in folio_test_pmd_mappable() 283 static inline void folio_prep_large_rmappable(struct folio *folio) {} in folio_prep_large_rmappable() 290 can_split_folio(struct folio *folio, int *pextra_pins) in can_split_folio() 303 static inline void deferred_split_folio(struct folio *folio) {} in deferred_split_folio() 308 unsigned long address, bool freeze, struct folio *folio) {} in __split_huge_pmd() 310 unsigned long address, bool freeze, struct folio *folio) {} in split_huge_pmd_address() 392 static inline int split_folio_to_list(struct folio *folio, in split_folio_to_list() 398 static inline int split_folio(struct folio *folio) in split_folio()
|
D | mmdebug.h | 27 #define VM_BUG_ON_FOLIO(cond, folio) \ argument 59 #define VM_WARN_ON_FOLIO(cond, folio) ({ \ argument 68 #define VM_WARN_ON_ONCE_FOLIO(cond, folio) ({ \ argument 98 #define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond) argument 104 #define VM_WARN_ON_FOLIO(cond, folio) BUILD_BUG_ON_INVALID(cond) argument 105 #define VM_WARN_ON_ONCE_FOLIO(cond, folio) BUILD_BUG_ON_INVALID(cond) argument
|
D | memcontrol.h | 383 static inline struct mem_cgroup *__folio_memcg(struct folio *folio) in __folio_memcg() 404 static inline struct obj_cgroup *__folio_objcg(struct folio *folio) in __folio_objcg() 436 static inline struct mem_cgroup *folio_memcg(struct folio *folio) in folio_memcg() 459 static inline struct mem_cgroup *folio_memcg_rcu(struct folio *folio) in folio_memcg_rcu() 498 static inline struct mem_cgroup *folio_memcg_check(struct folio *folio) in folio_memcg_check() 549 static inline bool folio_memcg_kmem(struct folio *folio) in folio_memcg_kmem() 558 static inline bool folio_memcg_kmem(struct folio *folio) in folio_memcg_kmem() 681 static inline int mem_cgroup_charge(struct folio *folio, struct mm_struct *mm, in mem_cgroup_charge() 701 static inline void mem_cgroup_uncharge(struct folio *folio) in mem_cgroup_uncharge() 760 static inline struct lruvec *folio_lruvec(struct folio *folio) in folio_lruvec() [all …]
|
/linux-6.6.21/fs/iomap/ |
D | buffered-io.c | 46 static inline bool ifs_is_fully_uptodate(struct folio *folio, in ifs_is_fully_uptodate() 60 static void ifs_set_range_uptodate(struct folio *folio, in ifs_set_range_uptodate() 76 static void iomap_set_range_uptodate(struct folio *folio, size_t off, in iomap_set_range_uptodate() 87 static inline bool ifs_block_is_dirty(struct folio *folio, in ifs_block_is_dirty() 96 static void ifs_clear_range_dirty(struct folio *folio, in ifs_clear_range_dirty() 111 static void iomap_clear_range_dirty(struct folio *folio, size_t off, size_t len) in iomap_clear_range_dirty() 119 static void ifs_set_range_dirty(struct folio *folio, in ifs_set_range_dirty() 134 static void iomap_set_range_dirty(struct folio *folio, size_t off, size_t len) in iomap_set_range_dirty() 143 struct folio *folio, unsigned int flags) in ifs_alloc() 178 static void ifs_free(struct folio *folio) in ifs_free() [all …]
|
/linux-6.6.21/fs/nfs/ |
D | write.c | 175 static struct nfs_page *nfs_folio_private_request(struct folio *folio) in nfs_folio_private_request() 188 static struct nfs_page *nfs_folio_find_private_request(struct folio *folio) in nfs_folio_find_private_request() 205 static struct nfs_page *nfs_folio_find_swap_request(struct folio *folio) in nfs_folio_find_swap_request() 231 static struct nfs_page *nfs_folio_find_head_request(struct folio *folio) in nfs_folio_find_head_request() 241 static struct nfs_page *nfs_folio_find_and_lock_request(struct folio *folio) in nfs_folio_find_and_lock_request() 272 static void nfs_grow_file(struct folio *folio, unsigned int offset, in nfs_grow_file() 310 static void nfs_mapping_set_error(struct folio *folio, int error) in nfs_mapping_set_error() 383 struct folio *folio = nfs_page_to_folio(req); in nfs_mark_uptodate() local 411 static void nfs_folio_set_writeback(struct folio *folio) in nfs_folio_set_writeback() 420 static void nfs_folio_end_writeback(struct folio *folio) in nfs_folio_end_writeback() [all …]
|
/linux-6.6.21/mm/damon/ |
D | paddr.c | 19 static bool __damon_pa_mkold(struct folio *folio, struct vm_area_struct *vma, in __damon_pa_mkold() 36 struct folio *folio = damon_get_folio(PHYS_PFN(paddr)); in damon_pa_mkold() local 82 static bool __damon_pa_young(struct folio *folio, struct vm_area_struct *vma, in __damon_pa_young() 116 struct folio *folio = damon_get_folio(PHYS_PFN(paddr)); in damon_pa_young() local 189 struct folio *folio) in __damos_pa_filter_out() 217 static bool damos_pa_filter_out(struct damos *scheme, struct folio *folio) in damos_pa_filter_out() 234 struct folio *folio = damon_get_folio(PHYS_PFN(addr)); in damon_pa_pageout() local 264 struct folio *folio = damon_get_folio(PHYS_PFN(addr)); in damon_pa_mark_accessed_or_deactivate() local
|
/linux-6.6.21/fs/9p/ |
D | vfs_addr.c | 115 static bool v9fs_release_folio(struct folio *folio, gfp_t gfp) in v9fs_release_folio() 130 static void v9fs_invalidate_folio(struct folio *folio, size_t offset, in v9fs_invalidate_folio() 152 static int v9fs_vfs_write_folio_locked(struct folio *folio) in v9fs_vfs_write_folio_locked() 203 struct folio *folio = page_folio(page); in v9fs_vfs_writepage() local 223 static int v9fs_launder_folio(struct folio *folio) in v9fs_launder_folio() 280 struct folio *folio; in v9fs_write_begin() local 302 struct folio *folio = page_folio(subpage); in v9fs_write_end() local 341 static bool v9fs_dirty_folio(struct address_space *mapping, struct folio *folio) in v9fs_dirty_folio()
|
/linux-6.6.21/fs/afs/ |
D | write.c | 30 bool afs_dirty_folio(struct address_space *mapping, struct folio *folio) in afs_dirty_folio() 35 static void afs_folio_start_fscache(bool caching, struct folio *folio) in afs_folio_start_fscache() 41 static void afs_folio_start_fscache(bool caching, struct folio *folio) in afs_folio_start_fscache() 51 struct folio *folio) in afs_flush_conflicting_write() 73 struct folio *folio; in afs_write_begin() local 157 struct folio *folio = page_folio(subpage); in afs_write_end() local 224 struct folio *folio; in afs_kill_pages() local 262 struct folio *folio; in afs_redirty_pages() local 293 struct folio *folio; in afs_pages_written_back() local 471 struct folio *folio; in afs_extend_writeback() local [all …]
|
/linux-6.6.21/fs/gfs2/ |
D | aops.c | 40 void gfs2_trans_add_databufs(struct gfs2_inode *ip, struct folio *folio, in gfs2_trans_add_databufs() 92 static int gfs2_write_jdata_folio(struct folio *folio, in gfs2_write_jdata_folio() 124 static int __gfs2_jdata_write_folio(struct folio *folio, in __gfs2_jdata_write_folio() 153 struct folio *folio = page_folio(page); in gfs2_jdata_writepage() local 229 struct folio *folio = fbatch->folios[i]; in gfs2_write_jdata_batch() local 450 static int gfs2_read_folio(struct file *file, struct folio *folio) in gfs2_read_folio() 581 struct folio *folio) in jdata_dirty_folio() 640 static void gfs2_invalidate_folio(struct folio *folio, size_t offset, in gfs2_invalidate_folio() 682 bool gfs2_release_folio(struct folio *folio, gfp_t gfp_mask) in gfs2_release_folio()
|
/linux-6.6.21/fs/ |
D | buffer.c | 88 void buffer_check_dirty_writeback(struct folio *folio, in buffer_check_dirty_writeback() 198 struct folio *folio; in __find_get_block_slow() local 250 struct folio *folio; in end_buffer_async_read() local 318 struct folio *folio = bh->b_folio; in need_fsverity() local 389 struct folio *folio; in end_buffer_async_write() local 722 bool block_dirty_folio(struct address_space *mapping, struct folio *folio) in block_dirty_folio() 917 struct buffer_head *folio_alloc_buffers(struct folio *folio, unsigned long size, in folio_alloc_buffers() 974 static inline void link_dev_buffers(struct folio *folio, in link_dev_buffers() 1003 static sector_t folio_init_buffers(struct folio *folio, in folio_init_buffers() 1042 struct folio *folio; in grow_dev_page() local [all …]
|
/linux-6.6.21/arch/mips/include/asm/ |
D | cacheflush.h | 39 #define folio_test_dcache_dirty(folio) \ argument 41 #define folio_set_dcache_dirty(folio) \ argument 43 #define folio_clear_dcache_dirty(folio) \ argument 56 static inline void flush_dcache_folio(struct folio *folio) in flush_dcache_folio()
|