Lines Matching refs:mapping

283 	struct inode *inode = page->mapping->host;  in ocfs2_readpage()
354 static int ocfs2_readpages(struct file *filp, struct address_space *mapping, in ocfs2_readpages() argument
358 struct inode *inode = mapping->host; in ocfs2_readpages()
392 err = mpage_readpages(mapping, pages, nr_pages, ocfs2_get_block); in ocfs2_readpages()
415 (unsigned long long)OCFS2_I(page->mapping->host)->ip_blkno, in ocfs2_writepage()
457 static sector_t ocfs2_bmap(struct address_space *mapping, sector_t block) in ocfs2_bmap() argument
462 struct inode *inode = mapping->host; in ocfs2_bmap()
1463 static int ocfs2_grab_pages_for_write(struct address_space *mapping, in ocfs2_grab_pages_for_write() argument
1471 struct inode *inode = mapping->host; in ocfs2_grab_pages_for_write()
1513 if (mmap_page->mapping != mapping) { in ocfs2_grab_pages_for_write()
1514 WARN_ON(mmap_page->mapping); in ocfs2_grab_pages_for_write()
1524 wc->w_pages[i] = find_or_create_page(mapping, index, in ocfs2_grab_pages_for_write()
1546 static int ocfs2_write_cluster(struct address_space *mapping, in ocfs2_write_cluster() argument
1556 struct inode *inode = mapping->host; in ocfs2_write_cluster()
1646 static int ocfs2_write_cluster_by_desc(struct address_space *mapping, in ocfs2_write_cluster_by_desc() argument
1656 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc()
1670 ret = ocfs2_write_cluster(mapping, desc->c_phys, in ocfs2_write_cluster_by_desc()
1832 static int ocfs2_write_begin_inline(struct address_space *mapping, in ocfs2_write_begin_inline() argument
1849 page = find_or_create_page(mapping, 0, GFP_NOFS); in ocfs2_write_begin_inline()
1898 static int ocfs2_try_to_write_inline_data(struct address_space *mapping, in ocfs2_try_to_write_inline_data() argument
1945 ret = ocfs2_write_begin_inline(mapping, inode, wc); in ocfs2_try_to_write_inline_data()
2042 struct address_space *mapping, in ocfs2_write_begin_nolock() argument
2050 struct inode *inode = mapping->host; in ocfs2_write_begin_nolock()
2067 ret = ocfs2_try_to_write_inline_data(mapping, inode, pos, len, in ocfs2_write_begin_nolock()
2195 ret = ocfs2_grab_pages_for_write(mapping, wc, wc->w_cpos, pos, len, in ocfs2_write_begin_nolock()
2214 ret = ocfs2_write_cluster_by_desc(mapping, data_ac, meta_ac, wc, pos, in ocfs2_write_begin_nolock()
2267 static int ocfs2_write_begin(struct file *file, struct address_space *mapping, in ocfs2_write_begin() argument
2273 struct inode *inode = mapping->host; in ocfs2_write_begin()
2290 ret = ocfs2_write_begin_nolock(file, mapping, pos, len, flags, pagep, in ocfs2_write_begin()
2335 int ocfs2_write_end_nolock(struct address_space *mapping, in ocfs2_write_end_nolock() argument
2341 struct inode *inode = mapping->host; in ocfs2_write_end_nolock()
2420 static int ocfs2_write_end(struct file *file, struct address_space *mapping, in ocfs2_write_end() argument
2425 struct inode *inode = mapping->host; in ocfs2_write_end()
2427 ret = ocfs2_write_end_nolock(mapping, pos, len, copied, page, fsdata); in ocfs2_write_end()