/linux/include/linux/ |
A D | page_idle.h | 18 static inline bool folio_test_young(struct folio *folio) in folio_test_young() 28 static inline void folio_set_young(struct folio *folio) in folio_set_young() 38 static inline bool folio_test_clear_young(struct folio *folio) in folio_test_clear_young() 48 static inline bool folio_test_idle(struct folio *folio) in folio_test_idle() 58 static inline void folio_set_idle(struct folio *folio) in folio_set_idle() 68 static inline void folio_clear_idle(struct folio *folio) in folio_clear_idle() 81 static inline bool folio_test_young(struct folio *folio) in folio_test_young() 86 static inline void folio_set_young(struct folio *folio) in folio_set_young() 95 static inline bool folio_test_idle(struct folio *folio) in folio_test_idle() 100 static inline void folio_set_idle(struct folio *folio) in folio_set_idle() [all …]
|
A 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() 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() 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() 231 static inline int folio_ref_dec_return(struct folio *folio) in folio_ref_dec_return() 261 static inline bool folio_try_get(struct folio *folio) in folio_try_get() [all …]
|
A D | pagemap.h | 265 struct folio *folio = page_folio(page); in page_mapping_file() local 702 static inline loff_t folio_pos(struct folio *folio) in folio_pos() 734 struct folio *folio; member 740 struct folio *folio; member 765 static inline bool folio_trylock(struct folio *folio) in folio_trylock() 778 static inline void folio_lock(struct folio *folio) in folio_lock() 790 struct folio *folio; in lock_page() local 826 struct folio *folio; in lock_page_or_retry() local 1056 struct folio *folio; in __readahead_folio() local 1085 struct folio *folio = __readahead_folio(ractl); in readahead_page() local [all …]
|
A D | mm_inline.h | 23 static inline int folio_is_file_lru(struct folio *folio) in folio_is_file_lru() 51 static __always_inline void __folio_clear_lru_flags(struct folio *folio) in __folio_clear_lru_flags() 77 static __always_inline enum lru_list folio_lru_list(struct folio *folio) in folio_lru_list() 94 void lruvec_add_folio(struct lruvec *lruvec, struct folio *folio) in lruvec_add_folio() 110 void lruvec_add_folio_tail(struct lruvec *lruvec, struct folio *folio) in lruvec_add_folio_tail() 126 void lruvec_del_folio(struct lruvec *lruvec, struct folio *folio) in lruvec_del_folio()
|
A 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() 472 static inline void node_stat_mod_folio(struct folio *folio, in node_stat_mod_folio() 478 static inline void node_stat_add_folio(struct folio *folio, in node_stat_add_folio() [all …]
|
A D | page-flags.h | 233 #define folio_page(folio, n) nth_page(&(folio)->page, n) argument 259 static unsigned long *folio_flags(struct folio *folio, unsigned n) in folio_flags() 579 static __always_inline bool folio_test_anon(struct folio *folio) in folio_test_anon() 602 static __always_inline bool folio_test_ksm(struct folio *folio) in folio_test_ksm() 618 static inline bool folio_test_uptodate(struct folio *folio) in folio_test_uptodate() 646 static __always_inline void folio_mark_uptodate(struct folio *folio) in folio_mark_uptodate() 672 #define folio_start_writeback(folio) \ argument 674 #define folio_start_writeback_keepwrite(folio) \ argument 723 static inline bool folio_test_hugetlb(struct folio *folio) in folio_test_hugetlb() 747 static inline bool folio_test_transhuge(struct folio *folio) in folio_test_transhuge() [all …]
|
A D | memcontrol.h | 532 static inline bool folio_memcg_kmem(struct folio *folio) in folio_memcg_kmem() 580 static inline bool folio_memcg_kmem(struct folio *folio) in folio_memcg_kmem() 728 static inline void mem_cgroup_uncharge(struct folio *folio) in mem_cgroup_uncharge() 787 static inline struct lruvec *folio_lruvec(struct folio *folio) in folio_lruvec() 1167 static inline bool folio_memcg_kmem(struct folio *folio) in folio_memcg_kmem() 1220 static inline int mem_cgroup_charge(struct folio *folio, in mem_cgroup_charge() 1236 static inline void mem_cgroup_uncharge(struct folio *folio) in mem_cgroup_uncharge() 1254 static inline struct lruvec *folio_lruvec(struct folio *folio) in folio_lruvec() 1397 static inline void folio_memcg_lock(struct folio *folio) in folio_memcg_lock() 1401 static inline void folio_memcg_unlock(struct folio *folio) in folio_memcg_unlock() [all …]
|
A D | mmdebug.h | 25 #define VM_BUG_ON_FOLIO(cond, folio) \ argument 57 #define VM_WARN_ON_ONCE_FOLIO(cond, folio) ({ \ argument 76 #define VM_BUG_ON_FOLIO(cond, folio) VM_BUG_ON(cond) argument 82 #define VM_WARN_ON_ONCE_FOLIO(cond, folio) BUILD_BUG_ON_INVALID(cond) argument
|
A D | netfs.h | 25 #define folio_test_fscache(folio) folio_test_private_2(folio) argument 39 static inline void folio_start_fscache(struct folio *folio) in folio_start_fscache() 53 static inline void folio_end_fscache(struct folio *folio) in folio_end_fscache() 66 static inline void folio_wait_fscache(struct folio *folio) in folio_wait_fscache() 84 static inline int folio_wait_fscache_killable(struct folio *folio) in folio_wait_fscache_killable()
|
A D | highmem.h | 374 static inline void folio_zero_segments(struct folio *folio, in folio_zero_segments() 386 static inline void folio_zero_segment(struct folio *folio, in folio_zero_segment() 398 static inline void folio_zero_range(struct folio *folio, in folio_zero_range()
|
A D | cacheflush.h | 12 static inline void flush_dcache_folio(struct folio *folio) in flush_dcache_folio()
|
A D | mm.h | 741 static inline int folio_put_testzero(struct folio *folio) in folio_put_testzero() 925 static inline unsigned int folio_order(struct folio *folio) in folio_order() 1185 #define folio_ref_zero_or_close_to_overflow(folio) \ argument 1196 static inline void folio_get(struct folio *folio) in folio_get() 1234 static inline void folio_put(struct folio *folio) in folio_put() 1242 struct folio *folio = page_folio(page); in put_page() local 1390 static inline int folio_nid(const struct folio *folio) in folio_nid() 1594 static inline unsigned long folio_pfn(struct folio *folio) in folio_pfn() 1641 static inline long folio_nr_pages(struct folio *folio) in folio_nr_pages() 1660 static inline struct folio *folio_next(struct folio *folio) in folio_next() [all …]
|
A D | highmem-internal.h | 76 static inline void *kmap_local_folio(struct folio *folio, size_t offset) in kmap_local_folio() 180 static inline void *kmap_local_folio(struct folio *folio, size_t offset) in kmap_local_folio()
|
/linux/mm/ |
A D | swap.c | 83 struct folio *folio = page_folio(page); in __page_cache_release() local 202 struct folio *folio = page_folio(page); in pagevec_lru_move_fn() local 221 struct folio *folio = page_folio(page); in pagevec_move_tail_fn() local 250 void folio_rotate_reclaimable(struct folio *folio) in folio_rotate_reclaimable() 306 void lru_note_cost_folio(struct folio *folio) in lru_note_cost_folio() 347 static void folio_activate(struct folio *folio) in folio_activate() 367 static void folio_activate(struct folio *folio) in folio_activate() 420 void folio_mark_accessed(struct folio *folio) in folio_mark_accessed() 458 void folio_add_lru(struct folio *folio) in folio_add_lru() 912 struct folio *folio = page_folio(page); in release_pages() local [all …]
|
A D | filemap.c | 1024 struct folio *folio; in filemap_alloc_folio() local 1511 void folio_unlock(struct folio *folio) in folio_unlock() 1533 void folio_end_private_2(struct folio *folio) in folio_end_private_2() 1548 void folio_wait_private_2(struct folio *folio) in folio_wait_private_2() 1584 void folio_end_writeback(struct folio *folio) in folio_end_writeback() 1647 void __folio_lock(struct folio *folio) in __folio_lock() 1654 int __folio_lock_killable(struct folio *folio) in __folio_lock_killable() 1838 struct folio *folio; in mapping_get_entry() local 1902 struct folio *folio; in __filemap_get_folio() local 2434 struct folio *folio = page_folio(page); in filemap_update_page() local [all …]
|
A D | page-writeback.c | 2401 int folio_write_one(struct folio *folio) in folio_write_one() 2448 static void folio_account_dirtied(struct folio *folio, in folio_account_dirtied() 2566 void folio_account_redirty(struct folio *folio) in folio_account_redirty() 2598 struct folio *folio) in folio_redirty_for_writepage() 2622 bool folio_mark_dirty(struct folio *folio) in folio_mark_dirty() 2683 void __folio_cancel_dirty(struct folio *folio) in __folio_cancel_dirty() 2720 bool folio_clear_dirty_for_io(struct folio *folio) in folio_clear_dirty_for_io() 2800 bool __folio_end_writeback(struct folio *folio) in __folio_end_writeback() 2921 void folio_wait_writeback(struct folio *folio) in folio_wait_writeback() 2943 int folio_wait_writeback_killable(struct folio *folio) in folio_wait_writeback_killable() [all …]
|
A D | workingset.c | 284 void workingset_refault(struct folio *folio, void *shadow) in workingset_refault() 400 void workingset_activation(struct folio *folio) in workingset_activation()
|
A D | util.c | 669 bool folio_mapped(struct folio *folio) in folio_mapped() 691 struct folio *folio = page_folio(page); in page_anon_vma() local 711 struct address_space *folio_mapping(struct folio *folio) in folio_mapping() 1094 void flush_dcache_folio(struct folio *folio) in flush_dcache_folio()
|
/linux/fs/9p/ |
A D | vfs_addr.c | 111 struct folio *folio = page_folio(page); in v9fs_vfs_readpage() local 135 struct folio *folio = page_folio(page); in v9fs_release_page() local 159 struct folio *folio = page_folio(page); in v9fs_invalidate_page() local 164 static int v9fs_vfs_write_folio_locked(struct folio *folio) in v9fs_vfs_write_folio_locked() 194 struct folio *folio = page_folio(page); in v9fs_vfs_writepage() local 223 struct folio *folio = page_folio(page); in v9fs_launder_page() local 279 struct folio *folio; in v9fs_write_begin() local 304 struct folio *folio = page_folio(subpage); in v9fs_write_end() local
|
/linux/fs/afs/ |
A D | write.c | 35 struct folio *folio; in afs_write_begin() local 112 struct folio *folio = page_folio(subpage); in afs_write_end() local 178 struct folio *folio; in afs_kill_pages() local 216 struct folio *folio; in afs_redirty_pages() local 247 struct folio *folio; in afs_pages_written_back() local 424 struct folio *folio; in afs_extend_writeback() local 533 struct folio *folio, in afs_write_back_from_locked_folio() 646 struct folio *folio = page_folio(subpage); in afs_writepage() local 671 struct folio *folio; in afs_writepages_region() local 852 struct folio *folio = page_folio(vmf->page); in afs_page_mkwrite() local [all …]
|
A D | file.c | 327 struct folio *folio = page_folio(page); in afs_symlink_readpage() local 368 struct folio *folio, void **_fsdata) in afs_check_write_begin() 391 struct folio *folio = page_folio(page); in afs_readpage() local 405 static void afs_invalidate_dirty(struct folio *folio, unsigned int offset, in afs_invalidate_dirty() 466 struct folio *folio = page_folio(page); in afs_invalidatepage() local 485 struct folio *folio = page_folio(page); in afs_releasepage() local
|
A D | dir_edit.c | 113 struct folio *folio; in afs_dir_get_folio() local 211 struct folio *folio0, *folio; in afs_edit_dir_add() local 378 struct folio *folio0, *folio; in afs_edit_dir_remove() local
|
A D | dir.c | 112 struct folio *folio; in afs_dir_read_cleanup() local 136 static bool afs_dir_check_folio(struct afs_vnode *dvnode, struct folio *folio, in afs_dir_check_folio() 186 struct folio *folio; in afs_dir_dump() local 220 struct folio *folio; in afs_dir_check() local 317 struct folio *folio; in afs_read_dir() local 494 struct folio *folio; in afs_dir_iterate() local 2006 struct folio *folio = page_folio(subpage); in afs_dir_releasepage() local 2025 struct folio *folio = page_folio(subpage); in afs_dir_invalidatepage() local
|
/linux/fs/netfs/ |
A D | read_helper.c | 241 struct folio *folio; in netfs_rreq_unmark_after_write() local 371 struct folio *folio; in netfs_rreq_unlock() local 945 struct folio *folio, in netfs_readpage() 1020 static bool netfs_skip_folio_read(struct folio *folio, loff_t pos, size_t len) in netfs_skip_folio_read() 1082 struct folio *folio; in netfs_write_begin() local
|
/linux/include/trace/events/ |
A D | pagemap.h | 19 #define trace_pagemap_flags(folio) ( \ argument
|