Lines Matching refs:mapping
383 static void affs_write_failed(struct address_space *mapping, loff_t to) in affs_write_failed() argument
385 struct inode *inode = mapping->host; in affs_write_failed()
397 struct address_space *mapping = file->f_mapping; in affs_direct_IO() local
398 struct inode *inode = mapping->host; in affs_direct_IO()
412 affs_write_failed(mapping, offset + count); in affs_direct_IO()
416 static int affs_write_begin(struct file *file, struct address_space *mapping, in affs_write_begin() argument
423 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in affs_write_begin()
425 &AFFS_I(mapping->host)->mmu_private); in affs_write_begin()
427 affs_write_failed(mapping, pos + len); in affs_write_begin()
432 static int affs_write_end(struct file *file, struct address_space *mapping, in affs_write_end() argument
436 struct inode *inode = mapping->host; in affs_write_end()
439 ret = generic_write_end(file, mapping, pos, len, copied, page, fsdata); in affs_write_end()
450 static sector_t _affs_bmap(struct address_space *mapping, sector_t block) in _affs_bmap() argument
452 return generic_block_bmap(mapping,block,affs_get_block); in _affs_bmap()
524 struct inode *inode = page->mapping->host; in affs_do_readpage_ofs()
632 struct inode *inode = page->mapping->host; in affs_readpage_ofs()
650 static int affs_write_begin_ofs(struct file *file, struct address_space *mapping, in affs_write_begin_ofs() argument
654 struct inode *inode = mapping->host; in affs_write_begin_ofs()
671 page = grab_cache_page_write_begin(mapping, index, flags); in affs_write_begin_ofs()
688 static int affs_write_end_ofs(struct file *file, struct address_space *mapping, in affs_write_end_ofs() argument
692 struct inode *inode = mapping->host; in affs_write_end_ofs()
880 struct address_space *mapping = inode->i_mapping; in affs_truncate() local
886 res = mapping->a_ops->write_begin(NULL, mapping, isize, 0, 0, &page, &fsdata); in affs_truncate()
888 res = mapping->a_ops->write_end(NULL, mapping, isize, 0, 0, page, fsdata); in affs_truncate()