Lines Matching defs:mapping
197 static int fat_writepages(struct address_space *mapping,
200 return mpage_writepages(mapping, wbc, fat_get_block);
213 static void fat_write_failed(struct address_space *mapping, loff_t to)
215 struct inode *inode = mapping->host;
223 static int fat_write_begin(struct file *file, struct address_space *mapping,
230 err = cont_write_begin(file, mapping, pos, len,
232 &MSDOS_I(mapping->host)->mmu_private);
234 fat_write_failed(mapping, pos + len);
238 static int fat_write_end(struct file *file, struct address_space *mapping,
242 struct inode *inode = mapping->host;
244 err = generic_write_end(file, mapping, pos, len, copied, pagep, fsdata);
246 fat_write_failed(mapping, pos + len);
258 struct address_space *mapping = file->f_mapping;
259 struct inode *inode = mapping->host;
285 fat_write_failed(mapping, offset + count);
315 static sector_t _fat_bmap(struct address_space *mapping, sector_t block)
320 down_read(&MSDOS_I(mapping->host)->truncate_lock);
321 blocknr = generic_block_bmap(mapping, block, fat_get_block_bmap);
322 up_read(&MSDOS_I(mapping->host)->truncate_lock);
328 * fat_block_truncate_page() zeroes out a mapping from file offset `from'
415 /* If NFS support is enabled, cache the mapping of start cluster