Lines Matching refs:mapping
381 static void affs_write_failed(struct address_space *mapping, loff_t to) in affs_write_failed() argument
383 struct inode *inode = mapping->host; in affs_write_failed()
395 struct address_space *mapping = file->f_mapping; in affs_direct_IO() local
396 struct inode *inode = mapping->host; in affs_direct_IO()
409 affs_write_failed(mapping, offset + count); in affs_direct_IO()
413 static int affs_write_begin(struct file *file, struct address_space *mapping, in affs_write_begin() argument
420 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in affs_write_begin()
422 &AFFS_I(mapping->host)->mmu_private); in affs_write_begin()
424 affs_write_failed(mapping, pos + len); in affs_write_begin()
429 static sector_t _affs_bmap(struct address_space *mapping, sector_t block) in _affs_bmap() argument
431 return generic_block_bmap(mapping,block,affs_get_block); in _affs_bmap()
503 struct inode *inode = page->mapping->host; in affs_do_readpage_ofs()
612 struct inode *inode = page->mapping->host; in affs_readpage_ofs()
630 static int affs_write_begin_ofs(struct file *file, struct address_space *mapping, in affs_write_begin_ofs() argument
634 struct inode *inode = mapping->host; in affs_write_begin_ofs()
651 page = grab_cache_page_write_begin(mapping, index, flags); in affs_write_begin_ofs()
668 static int affs_write_end_ofs(struct file *file, struct address_space *mapping, in affs_write_end_ofs() argument
672 struct inode *inode = mapping->host; in affs_write_end_ofs()
854 struct address_space *mapping = inode->i_mapping; in affs_truncate() local
860 res = mapping->a_ops->write_begin(NULL, mapping, isize, 0, 0, &page, &fsdata); in affs_truncate()
862 res = mapping->a_ops->write_end(NULL, mapping, isize, 0, 0, page, fsdata); in affs_truncate()