Lines Matching defs:mapping
158 static int nilfs_writepages(struct address_space *mapping,
161 struct inode *inode = mapping->host;
165 nilfs_clear_dirty_pages(mapping, false);
178 struct inode *inode = page->mapping->host;
206 static bool nilfs_dirty_folio(struct address_space *mapping,
209 struct inode *inode = mapping->host;
212 bool ret = filemap_dirty_folio(mapping, folio);
217 spin_lock(&mapping->private_lock);
233 spin_unlock(&mapping->private_lock);
240 void nilfs_write_failed(struct address_space *mapping, loff_t to)
242 struct inode *inode = mapping->host;
250 static int nilfs_write_begin(struct file *file, struct address_space *mapping,
255 struct inode *inode = mapping->host;
261 err = block_write_begin(mapping, pos, len, pagep, nilfs_get_block);
263 nilfs_write_failed(mapping, pos + len);
269 static int nilfs_write_end(struct file *file, struct address_space *mapping,
273 struct inode *inode = mapping->host;
280 copied = generic_write_end(file, mapping, pos, len, copied, page,
718 * nilfs_iget_for_shadow - obtain inode for shadow mapping
719 * @inode: inode object that uses shadow mapping
722 * caches for shadow mapping. The page cache for data pages is set up