Lines Matching refs:mapping
169 static int nilfs_readpages(struct file *file, struct address_space *mapping, in nilfs_readpages() argument
172 return mpage_readpages(mapping, pages, nr_pages, nilfs_get_block); in nilfs_readpages()
175 static int nilfs_writepages(struct address_space *mapping, in nilfs_writepages() argument
178 struct inode *inode = mapping->host; in nilfs_writepages()
182 nilfs_clear_dirty_pages(mapping, false); in nilfs_writepages()
195 struct inode *inode = page->mapping->host; in nilfs_writepage()
225 struct inode *inode = page->mapping->host; in nilfs_set_page_dirty()
259 void nilfs_write_failed(struct address_space *mapping, loff_t to) in nilfs_write_failed() argument
261 struct inode *inode = mapping->host; in nilfs_write_failed()
269 static int nilfs_write_begin(struct file *file, struct address_space *mapping, in nilfs_write_begin() argument
274 struct inode *inode = mapping->host; in nilfs_write_begin()
280 err = block_write_begin(mapping, pos, len, flags, pagep, in nilfs_write_begin()
283 nilfs_write_failed(mapping, pos + len); in nilfs_write_begin()
289 static int nilfs_write_end(struct file *file, struct address_space *mapping, in nilfs_write_end() argument
293 struct inode *inode = mapping->host; in nilfs_write_end()
300 copied = generic_write_end(file, mapping, pos, len, copied, page, in nilfs_write_end()
311 struct address_space *mapping = file->f_mapping; in nilfs_direct_IO() local
331 nilfs_write_failed(mapping, end); in nilfs_direct_IO()