Lines Matching refs:mapping
1156 struct address_space *mapping = page->mapping; in cifs_partialpagewrite() local
1166 if (!mapping || !mapping->host) in cifs_partialpagewrite()
1169 inode = page->mapping->host; in cifs_partialpagewrite()
1183 if (offset > mapping->host->i_size) { in cifs_partialpagewrite()
1189 if (mapping->host->i_size - offset < (loff_t)to) in cifs_partialpagewrite()
1190 to = (unsigned)(mapping->host->i_size - offset); in cifs_partialpagewrite()
1192 open_file = find_writable_file(CIFS_I(mapping->host)); in cifs_partialpagewrite()
1212 static int cifs_writepages(struct address_space *mapping, in cifs_writepages() argument
1215 struct backing_dev_info *bdi = mapping->backing_dev_info; in cifs_writepages()
1236 cifs_sb = CIFS_SB(mapping->host->i_sb); in cifs_writepages()
1243 return generic_writepages(mapping, wbc); in cifs_writepages()
1249 return generic_writepages(mapping, wbc); in cifs_writepages()
1253 return generic_writepages(mapping, wbc); in cifs_writepages()
1270 index = mapping->writeback_index; /* Start from prev offset */ in cifs_writepages()
1281 (nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in cifs_writepages()
1307 if (unlikely(page->mapping != mapping)) { in cifs_writepages()
1339 if (page_offset(page) >= mapping->host->i_size) { in cifs_writepages()
1351 len = min(mapping->host->i_size - page_offset(page), in cifs_writepages()
1373 open_file = find_writable_file(CIFS_I(mapping->host)); in cifs_writepages()
1390 set_bit(AS_ENOSPC, &mapping->flags); in cifs_writepages()
1392 set_bit(AS_EIO, &mapping->flags); in cifs_writepages()
1431 mapping->writeback_index = index; in cifs_writepages()
1469 static int cifs_write_end(struct file *file, struct address_space *mapping, in cifs_write_end() argument
1474 struct inode *inode = mapping->host; in cifs_write_end()
1768 static void cifs_copy_cache_pages(struct address_space *mapping, in cifs_copy_cache_pages() argument
1782 if (add_to_page_cache(page, mapping, page->index, in cifs_copy_cache_pages()
1815 static int cifs_readpages(struct file *file, struct address_space *mapping, in cifs_readpages() argument
1908 cifs_copy_cache_pages(mapping, page_list, bytes_read, in cifs_readpages()
2064 static int cifs_write_begin(struct file *file, struct address_space *mapping, in cifs_write_begin() argument
2077 page = grab_cache_page_write_begin(mapping, index, flags); in cifs_write_begin()
2100 if (CIFS_I(mapping->host)->clientCanCacheRead) { in cifs_write_begin()
2101 i_size = i_size_read(mapping->host); in cifs_write_begin()