Lines Matching full:mapping
95 struct inode * const inode = folio->mapping->host; in gfs2_write_jdata_folio()
126 struct inode *inode = folio->mapping->host; in __gfs2_jdata_write_folio()
143 * @mapping: The mapping to write
148 static int gfs2_writepages(struct address_space *mapping, in gfs2_writepages() argument
151 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages()
161 ret = iomap_writepages(mapping, wbc, &wpc, &gfs2_writeback_ops); in gfs2_writepages()
169 * @mapping: The mapping
177 static int gfs2_write_jdata_batch(struct address_space *mapping, in gfs2_write_jdata_batch() argument
182 struct inode *inode = mapping->host; in gfs2_write_jdata_batch()
205 if (unlikely(folio->mapping != mapping)) { in gfs2_write_jdata_batch()
269 * @mapping: The mapping to write
277 static int gfs2_write_cache_jdata(struct address_space *mapping, in gfs2_write_cache_jdata() argument
294 writeback_index = mapping->writeback_index; /* prev offset */ in gfs2_write_cache_jdata()
315 tag_pages_for_writeback(mapping, index, end); in gfs2_write_cache_jdata()
318 nr_folios = filemap_get_folios_tag(mapping, &index, end, in gfs2_write_cache_jdata()
323 ret = gfs2_write_jdata_batch(mapping, wbc, &fbatch, in gfs2_write_cache_jdata()
346 mapping->writeback_index = done_index; in gfs2_write_cache_jdata()
354 * @mapping: The mapping to write
359 static int gfs2_jdata_writepages(struct address_space *mapping, in gfs2_jdata_writepages() argument
362 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_jdata_writepages()
363 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_jdata_writepages()
366 ret = gfs2_write_cache_jdata(mapping, wbc); in gfs2_jdata_writepages()
370 ret = gfs2_write_cache_jdata(mapping, wbc); in gfs2_jdata_writepages()
418 struct inode *inode = folio->mapping->host; in gfs2_read_folio()
450 struct address_space *mapping = ip->i_inode.i_mapping; in gfs2_internal_read() local
458 folio = read_cache_folio(mapping, index, gfs2_read_folio, NULL); in gfs2_internal_read()
492 struct inode *inode = rac->mapping->host; in gfs2_readahead()
543 static bool jdata_dirty_folio(struct address_space *mapping, in jdata_dirty_folio() argument
548 return block_dirty_folio(mapping, folio); in jdata_dirty_folio()
553 * @mapping: Address space info
559 static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) in gfs2_bmap() argument
561 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_bmap()
571 dblock = iomap_bmap(mapping, lblock, &gfs2_iomap_ops); in gfs2_bmap()
606 struct gfs2_sbd *sdp = GFS2_SB(folio->mapping->host); in gfs2_invalidate_folio()
647 struct address_space *mapping = folio->mapping; in gfs2_release_folio() local
648 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_release_folio()