H A D | filemap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1994-1999 Linus Torvalds 30 #include <linux/error-injection.h> 33 #include <linux/backing-dev.h> 72 * finished 'unifying' the page and buffer cache and SMP-threaded the 73 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com> 75 * SMP-threade 129 mapping_set_update(struct xa_state * xas,struct address_space * mapping) mapping_set_update() argument 137 page_cache_delete(struct address_space * mapping,struct folio * folio,void * shadow) page_cache_delete() argument 158 filemap_unaccount_folio(struct address_space * mapping,struct folio * folio) filemap_unaccount_folio() argument 229 struct address_space *mapping = folio->mapping; __filemap_remove_folio() local 236 filemap_free_folio(struct address_space * mapping,struct folio * folio) filemap_free_folio() argument 260 struct address_space *mapping = folio->mapping; filemap_remove_folio() local 287 page_cache_delete_batch(struct address_space * mapping,struct folio_batch * fbatch) page_cache_delete_batch() argument 328 delete_from_page_cache_batch(struct address_space * mapping,struct folio_batch * fbatch) delete_from_page_cache_batch() argument 354 filemap_check_errors(struct address_space * mapping) filemap_check_errors() argument 368 filemap_check_and_keep_errors(struct address_space * mapping) filemap_check_and_keep_errors() argument 388 filemap_fdatawrite_wbc(struct address_space * mapping,struct writeback_control * wbc) filemap_fdatawrite_wbc() argument 421 __filemap_fdatawrite_range(struct address_space * mapping,loff_t start,loff_t end,int sync_mode) __filemap_fdatawrite_range() argument 434 __filemap_fdatawrite(struct address_space * mapping,int sync_mode) __filemap_fdatawrite() argument 440 filemap_fdatawrite(struct address_space * mapping) filemap_fdatawrite() argument 446 filemap_fdatawrite_range(struct address_space * mapping,loff_t start,loff_t end) filemap_fdatawrite_range() argument 462 filemap_flush(struct address_space * mapping) filemap_flush() argument 480 filemap_range_has_page(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_has_page() argument 511 __filemap_fdatawait_range(struct address_space * mapping,loff_t start_byte,loff_t end_byte) __filemap_fdatawait_range() argument 556 filemap_fdatawait_range(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_fdatawait_range() argument 578 filemap_fdatawait_range_keep_errors(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_fdatawait_range_keep_errors() argument 604 struct address_space *mapping = file->f_mapping; file_fdatawait_range() local 625 filemap_fdatawait_keep_errors(struct address_space * mapping) filemap_fdatawait_keep_errors() argument 633 mapping_needs_writeback(struct address_space * mapping) mapping_needs_writeback() argument 638 filemap_range_has_writeback(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_has_writeback() argument 676 filemap_write_and_wait_range(struct address_space * mapping,loff_t lstart,loff_t lend) filemap_write_and_wait_range() argument 703 __filemap_set_wb_err(struct address_space * mapping,int err) __filemap_set_wb_err() argument 739 struct address_space *mapping = file->f_mapping; file_check_and_advance_wb_err() local 782 struct address_space *mapping = file->f_mapping; file_write_and_wait_range() local 816 struct address_space *mapping = old->mapping; replace_page_cache_folio() local 851 __filemap_add_folio(struct address_space * mapping,struct folio * folio,pgoff_t index,gfp_t gfp,void ** shadowp) __filemap_add_folio() argument 961 filemap_add_folio(struct address_space * mapping,struct folio * folio,pgoff_t index,gfp_t gfp) filemap_add_folio() argument 1749 page_cache_next_miss(struct address_space * mapping,pgoff_t index,unsigned long max_scan) page_cache_next_miss() argument 1785 page_cache_prev_miss(struct address_space * mapping,pgoff_t index,unsigned long max_scan) page_cache_prev_miss() argument 1834 filemap_get_entry(struct address_space * mapping,pgoff_t index) filemap_get_entry() argument 1881 __filemap_get_folio(struct address_space * mapping,pgoff_t index,fgf_t fgp_flags,gfp_t gfp) __filemap_get_folio() argument 2040 find_get_entries(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch,pgoff_t * indices) find_get_entries() argument 2089 find_lock_entries(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch,pgoff_t * indices) find_lock_entries() argument 2157 filemap_get_folios(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios() argument 2179 filemap_get_folios_contig(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios_contig() argument 2250 filemap_get_folios_tag(struct address_space * mapping,pgoff_t * start,pgoff_t end,xa_mark_t tag,struct folio_batch * fbatch) filemap_get_folios_tag() argument 2317 filemap_get_read_batch(struct address_space * mapping,pgoff_t index,pgoff_t max,struct folio_batch * fbatch) filemap_get_read_batch() argument 2379 filemap_range_uptodate(struct address_space * mapping,loff_t pos,size_t count,struct folio * folio,bool need_uptodate) filemap_range_uptodate() argument 2404 filemap_update_page(struct kiocb * iocb,struct address_space * mapping,size_t count,struct folio * folio,bool need_uptodate) filemap_update_page() argument 2460 filemap_create_folio(struct file * file,struct address_space * mapping,loff_t pos,struct folio_batch * fbatch) filemap_create_folio() argument 2508 filemap_readahead(struct kiocb * iocb,struct file * file,struct address_space * mapping,struct folio * folio,pgoff_t last_index) filemap_readahead() argument 2523 struct address_space *mapping = filp->f_mapping; filemap_get_pages() local 2611 struct address_space *mapping = filp->f_mapping; filemap_read() local 2717 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_write_and_wait() local 2731 filemap_invalidate_pages(struct address_space * mapping,loff_t pos,loff_t end,bool nowait) filemap_invalidate_pages() argument 2758 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_invalidate_pages() local 2798 struct address_space *mapping = file->f_mapping; generic_file_read_iter() local 2980 folio_seek_hole_data(struct xa_state * xas,struct address_space * mapping,struct folio * folio,loff_t start,loff_t end,bool seek_data) folio_seek_hole_data() argument 3037 mapping_seek_hole_data(struct address_space * mapping,loff_t start,loff_t end,int whence) mapping_seek_hole_data() argument 3142 struct address_space *mapping = file->f_mapping; do_sync_mmap_readahead() local 3302 struct address_space *mapping = file->f_mapping; filemap_fault() local 3487 next_uptodate_folio(struct xa_state * xas,struct address_space * mapping,pgoff_t end_pgoff) next_uptodate_folio() argument 3631 struct address_space *mapping = file->f_mapping; filemap_map_pages() local 3701 struct address_space *mapping = vmf->vma->vm_file->f_mapping; filemap_page_mkwrite() local 3735 struct address_space *mapping = file->f_mapping; generic_file_mmap() local 3772 do_read_cache_folio(struct address_space * mapping,pgoff_t index,filler_t filler,struct file * file,gfp_t gfp) do_read_cache_folio() argument 3850 read_cache_folio(struct address_space * mapping,pgoff_t index,filler_t filler,struct file * file) read_cache_folio() argument 3875 mapping_read_folio_gfp(struct address_space * mapping,pgoff_t index,gfp_t gfp) mapping_read_folio_gfp() argument 3882 do_read_cache_page(struct address_space * mapping,pgoff_t index,filler_t * filler,struct file * file,gfp_t gfp) do_read_cache_page() argument 3893 read_cache_page(struct address_space * mapping,pgoff_t index,filler_t * filler,struct file * file) read_cache_page() argument 3916 read_cache_page_gfp(struct address_space * mapping,pgoff_t index,gfp_t gfp) read_cache_page_gfp() argument 3946 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_invalidate_post_direct_write() local 3958 struct address_space *mapping = iocb->ki_filp->f_mapping; generic_file_direct_write() local 4015 struct address_space *mapping = file->f_mapping; generic_perform_write() local 4124 struct address_space *mapping = file->f_mapping; __generic_file_write_iter() local 4205 struct address_space * const mapping = folio->mapping; filemap_release_folio() local 4235 struct address_space *mapping = inode->i_mapping; filemap_invalidate_inode() local 4286 filemap_cachestat(struct address_space * mapping,pgoff_t first_index,pgoff_t last_index,struct cachestat * cs) filemap_cachestat() argument 4421 struct address_space *mapping; SYSCALL_DEFINE4() local [all...] |