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()
181 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
214 static int gfs2_writepages(struct address_space *mapping, in gfs2_writepages() argument
217 return mpage_writepages(mapping, wbc, gfs2_get_block_noalloc); in gfs2_writepages()
231 static int gfs2_write_jdata_pagevec(struct address_space *mapping, in gfs2_write_jdata_pagevec() argument
237 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec()
270 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()
603 static int gfs2_readpages(struct file *file, struct address_space *mapping, in gfs2_readpages() argument
606 struct inode *inode = mapping->host; in gfs2_readpages()
617 ret = mpage_readpages(mapping, pages, nr_pages, gfs2_block_map); in gfs2_readpages()
639 static int gfs2_write_begin(struct file *file, struct address_space *mapping, in gfs2_write_begin() argument
643 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_write_begin()
644 struct gfs2_sbd *sdp = GFS2_SB(mapping->host); in gfs2_write_begin()
702 page = grab_cache_page_write_begin(mapping, index, flags); in gfs2_write_begin()
867 static int gfs2_write_end(struct file *file, struct address_space *mapping, in gfs2_write_end() argument
871 struct inode *inode = page->mapping->host; in gfs2_write_end()
897 ret = generic_write_end(file, mapping, pos, len, copied, page, fsdata); in gfs2_write_end()
945 static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) in gfs2_bmap() argument
947 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_bmap()
957 dblock = generic_block_bmap(mapping, lblock, gfs2_block_map); in gfs2_bmap()
989 struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); in gfs2_invalidatepage()
1046 struct address_space *mapping = inode->i_mapping; in gfs2_direct_IO() local
1080 if (mapping->nrpages) { in gfs2_direct_IO()
1090 rv = filemap_write_and_wait_range(mapping, lstart, end); in gfs2_direct_IO()
1094 truncate_inode_pages_range(mapping, lstart, end); in gfs2_direct_IO()
1118 struct address_space *mapping = page->mapping; in gfs2_releasepage() local
1119 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_releasepage()