Lines Matching refs:mapping
81 static bool ceph_dirty_folio(struct address_space *mapping, struct folio *folio) in ceph_dirty_folio() argument
83 struct inode *inode = mapping->host; in ceph_dirty_folio()
132 return ceph_fscache_dirty_folio(mapping, folio); in ceph_dirty_folio()
143 struct inode *inode = folio->mapping->host; in ceph_invalidate_folio()
721 struct inode *inode = folio->mapping->host; in write_folio_nounlock()
884 struct address_space *mapping = inode->i_mapping; in writepages_finish() local
892 mapping_set_error(mapping, rc); in writepages_finish()
978 bool is_forced_umount(struct address_space *mapping) in is_forced_umount() argument
980 struct inode *inode = mapping->host; in is_forced_umount()
991 mapping_set_error(mapping, -EIO); in is_forced_umount()
999 unsigned int ceph_define_write_size(struct address_space *mapping) in ceph_define_write_size() argument
1001 struct inode *inode = mapping->host; in ceph_define_write_size()
1026 void ceph_init_writeback_ctl(struct address_space *mapping, in ceph_init_writeback_ctl() argument
1034 ceph_wbc->wsize = ceph_define_write_size(mapping); in ceph_init_writeback_ctl()
1044 ceph_wbc->start_index = wbc->range_cyclic ? mapping->writeback_index : 0; in ceph_init_writeback_ctl()
1067 int ceph_define_writeback_range(struct address_space *mapping, in ceph_define_writeback_range() argument
1071 struct inode *inode = mapping->host; in ceph_define_writeback_range()
1137 int ceph_check_page_before_write(struct address_space *mapping, in ceph_check_page_before_write() argument
1142 struct inode *inode = mapping->host; in ceph_check_page_before_write()
1148 if (unlikely(!folio_test_dirty(folio) || folio->mapping != mapping)) { in ceph_check_page_before_write()
1203 void ceph_allocate_page_array(struct address_space *mapping, in ceph_allocate_page_array() argument
1207 struct inode *inode = mapping->host; in ceph_allocate_page_array()
1250 static inline int move_dirty_folio_in_page_array(struct address_space *mapping, in move_dirty_folio_in_page_array() argument
1254 struct inode *inode = mapping->host; in move_dirty_folio_in_page_array()
1288 int ceph_process_folio_batch(struct address_space *mapping, in ceph_process_folio_batch() argument
1292 struct inode *inode = mapping->host; in ceph_process_folio_batch()
1324 rc = ceph_check_page_before_write(mapping, wbc, in ceph_process_folio_batch()
1352 ceph_allocate_page_array(mapping, ceph_wbc, folio); in ceph_process_folio_batch()
1371 rc = move_dirty_folio_in_page_array(mapping, wbc, ceph_wbc, in ceph_process_folio_batch()
1409 int ceph_submit_write(struct address_space *mapping, in ceph_submit_write() argument
1413 struct inode *inode = mapping->host; in ceph_submit_write()
1596 void ceph_wait_until_current_writes_complete(struct address_space *mapping, in ceph_wait_until_current_writes_complete() argument
1609 (nr = filemap_get_folios_tag(mapping, in ceph_wait_until_current_writes_complete()
1630 static int ceph_writepages_start(struct address_space *mapping, in ceph_writepages_start() argument
1633 struct inode *inode = mapping->host; in ceph_writepages_start()
1646 if (is_forced_umount(mapping)) { in ceph_writepages_start()
1651 ceph_init_writeback_ctl(mapping, wbc, &ceph_wbc); in ceph_writepages_start()
1659 rc = ceph_define_writeback_range(mapping, wbc, &ceph_wbc); in ceph_writepages_start()
1668 tag_pages_for_writeback(mapping, ceph_wbc.index, ceph_wbc.end); in ceph_writepages_start()
1677 ceph_wbc.nr_folios = filemap_get_folios_tag(mapping, in ceph_writepages_start()
1689 rc = ceph_process_folio_batch(mapping, wbc, &ceph_wbc); in ceph_writepages_start()
1707 rc = ceph_submit_write(mapping, wbc, &ceph_wbc); in ceph_writepages_start()
1744 ceph_wait_until_current_writes_complete(mapping, wbc, &ceph_wbc); in ceph_writepages_start()
1752 mapping->writeback_index = ceph_wbc.index; in ceph_writepages_start()
1792 struct inode *inode = folio->mapping->host; in ceph_find_incompatible()
1868 struct address_space *mapping, in ceph_write_begin() argument
1891 struct address_space *mapping, loff_t pos, in ceph_write_end() argument
2009 struct address_space *mapping = inode->i_mapping; in ceph_filemap_fault() local
2012 filemap_invalidate_lock_shared(mapping); in ceph_filemap_fault()
2013 page = find_or_create_page(mapping, 0, in ceph_filemap_fault()
2014 mapping_gfp_constraint(mapping, ~__GFP_FS)); in ceph_filemap_fault()
2035 filemap_invalidate_unlock_shared(mapping); in ceph_filemap_fault()
2155 struct address_space *mapping = inode->i_mapping; in ceph_fill_inline_data() local
2163 page = find_or_create_page(mapping, 0, in ceph_fill_inline_data()
2164 mapping_gfp_constraint(mapping, in ceph_fill_inline_data()
2339 struct address_space *mapping = desc->file->f_mapping; in ceph_mmap_prepare() local
2341 if (!mapping->a_ops->read_folio) in ceph_mmap_prepare()