Lines Matching defs:mapping
373 static int exfat_writepages(struct address_space *mapping,
376 return mpage_writepages(mapping, wbc, exfat_get_block);
379 static void exfat_write_failed(struct address_space *mapping, loff_t to)
381 struct inode *inode = mapping->host;
389 static int exfat_write_begin(struct file *file, struct address_space *mapping,
396 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata,
398 &EXFAT_I(mapping->host)->i_size_ondisk);
401 exfat_write_failed(mapping, pos+len);
406 static int exfat_write_end(struct file *file, struct address_space *mapping,
410 struct inode *inode = mapping->host;
414 err = generic_write_end(file, mapping, pos, len, copied, pagep, fsdata);
424 exfat_write_failed(mapping, pos+len);
437 struct address_space *mapping = iocb->ki_filp->f_mapping;
438 struct inode *inode = mapping->host;
463 exfat_write_failed(mapping, size);
467 static sector_t exfat_aop_bmap(struct address_space *mapping, sector_t block)
472 down_read(&EXFAT_I(mapping->host)->truncate_lock);
473 blocknr = generic_block_bmap(mapping, block, exfat_get_block);
474 up_read(&EXFAT_I(mapping->host)->truncate_lock);
479 * exfat_block_truncate_page() zeroes out a mapping from file offset `from'