Lines Matching refs:mapping

100 	struct inode *inode = page->mapping->host;  in gfs2_writepage_common()
114 page->mapping->a_ops->invalidatepage(page, 0, PAGE_CACHE_SIZE); in gfs2_writepage_common()
156 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage()
182 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
215 static int gfs2_writepages(struct address_space *mapping, in gfs2_writepages() argument
218 return mpage_writepages(mapping, wbc, gfs2_get_block_noalloc); in gfs2_writepages()
233 static int gfs2_write_jdata_pagevec(struct address_space *mapping, in gfs2_write_jdata_pagevec() argument
239 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec()
272 if (unlikely(page->mapping != mapping)) { in gfs2_write_jdata_pagevec()
344 static int gfs2_write_cache_jdata(struct address_space *mapping, in gfs2_write_cache_jdata() argument
361 writeback_index = mapping->writeback_index; /* prev offset */ in gfs2_write_cache_jdata()
382 tag_pages_for_writeback(mapping, index, end); in gfs2_write_cache_jdata()
385 nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, tag, in gfs2_write_cache_jdata()
390 ret = gfs2_write_jdata_pagevec(mapping, wbc, &pvec, nr_pages, end, &done_index); in gfs2_write_cache_jdata()
412 mapping->writeback_index = done_index; in gfs2_write_cache_jdata()
425 static int gfs2_jdata_writepages(struct address_space *mapping, in gfs2_jdata_writepages() argument
428 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_jdata_writepages()
429 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_jdata_writepages()
432 ret = gfs2_write_cache_jdata(mapping, wbc); in gfs2_jdata_writepages()
435 ret = gfs2_write_cache_jdata(mapping, wbc); in gfs2_jdata_writepages()
497 struct gfs2_inode *ip = GFS2_I(page->mapping->host); in __gfs2_readpage()
498 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in __gfs2_readpage()
526 struct address_space *mapping = page->mapping; in gfs2_readpage() local
527 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_readpage()
538 if (page->mapping == mapping && !PageUptodate(page)) in gfs2_readpage()
562 struct address_space *mapping = ip->i_inode.i_mapping; in gfs2_internal_read() local
574 page = read_cache_page(mapping, index, __gfs2_readpage, NULL); in gfs2_internal_read()
607 static int gfs2_readpages(struct file *file, struct address_space *mapping, in gfs2_readpages() argument
610 struct inode *inode = mapping->host; in gfs2_readpages()
621 ret = mpage_readpages(mapping, pages, nr_pages, gfs2_block_map); in gfs2_readpages()
643 static int gfs2_write_begin(struct file *file, struct address_space *mapping, in gfs2_write_begin() argument
647 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_write_begin()
648 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_write_begin()
706 page = grab_cache_page_write_begin(mapping, index, flags); in gfs2_write_begin()
871 static int gfs2_write_end(struct file *file, struct address_space *mapping, in gfs2_write_end() argument
875 struct inode *inode = page->mapping->host; in gfs2_write_end()
901 ret = generic_write_end(file, mapping, pos, len, copied, page, fsdata); in gfs2_write_end()
949 static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) in gfs2_bmap() argument
951 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_bmap()
961 dblock = generic_block_bmap(mapping, lblock, gfs2_block_map); in gfs2_bmap()
993 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in gfs2_invalidatepage()
1050 struct address_space *mapping = inode->i_mapping; in gfs2_direct_IO() local
1084 if (mapping->nrpages) { in gfs2_direct_IO()
1094 rv = filemap_write_and_wait_range(mapping, lstart, end); in gfs2_direct_IO()
1098 truncate_inode_pages_range(mapping, lstart, end); in gfs2_direct_IO()
1122 struct address_space *mapping = page->mapping; in gfs2_releasepage() local
1123 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_releasepage()