Lines Matching defs:mapping

80 static bool ceph_dirty_folio(struct address_space *mapping, struct folio *folio)
88 mapping->host, folio, folio->index);
93 inode = mapping->host;
116 mapping->host, folio, folio->index,
129 return ceph_fscache_dirty_folio(mapping, folio);
144 inode = folio->mapping->host;
168 struct inode *inode = folio->mapping->host;
335 iov_iter_xarray(&iter, ITER_DEST, &rreq->mapping->i_pages, subreq->start, len);
388 iov_iter_xarray(&iter, ITER_DEST, &rreq->mapping->i_pages, subreq->start, len);
653 * If we get a write error, mark the mapping for error, but still adjust the
659 struct inode *inode = page->mapping->host;
777 dout("writepage setting page/mapping error %d %p\n",
801 struct inode *inode = page->mapping->host;
814 * to prevent caller from setting mapping/page error */
825 * If we get an error, set the mapping error bit, but not the individual
838 struct address_space *mapping = inode->i_mapping;
845 mapping_set_error(mapping, rc);
924 static int ceph_writepages_start(struct address_space *mapping,
927 struct inode *inode = mapping->host;
957 mapping_set_error(mapping, -EIO);
965 start_index = wbc->range_cyclic ? mapping->writeback_index : 0;
1012 tag_pages_for_writeback(mapping, index, end);
1029 nr_folios = filemap_get_folios_tag(mapping, &index,
1044 unlikely(page->mapping != mapping)) {
1045 dout("!dirty or !mapping %p\n", page);
1367 (nr = filemap_get_folios_tag(mapping, &index,
1388 mapping->writeback_index = index;
1426 struct inode *inode = page->mapping->host;
1498 static int ceph_write_begin(struct file *file, struct address_space *mapping,
1521 static int ceph_write_end(struct file *file, struct address_space *mapping,
1637 struct address_space *mapping = inode->i_mapping;
1640 filemap_invalidate_lock_shared(mapping);
1641 page = find_or_create_page(mapping, 0,
1642 mapping_gfp_constraint(mapping, ~__GFP_FS));
1663 filemap_invalidate_unlock_shared(mapping);
1781 struct address_space *mapping = inode->i_mapping;
1789 page = find_or_create_page(mapping, 0,
1790 mapping_gfp_constraint(mapping,
1964 struct address_space *mapping = file->f_mapping;
1966 if (!mapping->a_ops->read_folio)