• Home
  • Raw
  • Download

Lines Matching refs:mapping

359 	struct address_space *mapping = inode->i_mapping;  in ext4_num_dirty_pages()  local
370 nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in ext4_num_dirty_pages()
380 if (unlikely(page->mapping != mapping) || in ext4_num_dirty_pages()
418 struct address_space *mapping = inode->i_mapping; in set_buffers_da_mapped() local
429 nr_pages = pagevec_lookup(&pvec, mapping, index, in set_buffers_da_mapped()
438 if (unlikely(page->mapping != mapping) || in set_buffers_da_mapped()
805 static int ext4_write_begin(struct file *file, struct address_space *mapping, in ext4_write_begin() argument
809 struct inode *inode = mapping->host; in ext4_write_begin()
838 page = grab_cache_page_write_begin(mapping, index, flags); in ext4_write_begin()
900 struct address_space *mapping, in ext4_generic_write_end() argument
905 struct inode *inode = mapping->host; in ext4_generic_write_end()
908 copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); in ext4_generic_write_end()
953 struct address_space *mapping, in ext4_ordered_write_end() argument
958 struct inode *inode = mapping->host; in ext4_ordered_write_end()
965 ret2 = ext4_generic_write_end(file, mapping, pos, len, copied, in ext4_ordered_write_end()
1001 struct address_space *mapping, in ext4_writeback_write_end() argument
1006 struct inode *inode = mapping->host; in ext4_writeback_write_end()
1010 ret2 = ext4_generic_write_end(file, mapping, pos, len, copied, in ext4_writeback_write_end()
1042 struct address_space *mapping, in ext4_journalled_write_end() argument
1047 struct inode *inode = mapping->host; in ext4_journalled_write_end()
1223 struct inode *inode = page->mapping->host; in ext4_da_page_release_reservation()
1279 struct address_space *mapping = inode->i_mapping; in mpage_da_submit_io() local
1300 nr_pages = pagevec_lookup(&pvec, mapping, index, PAGEVEC_SIZE); in mpage_da_submit_io()
1424 struct address_space *mapping = inode->i_mapping; in ext4_da_block_invalidatepages() local
1431 nr_pages = pagevec_lookup(&pvec, mapping, index, PAGEVEC_SIZE); in ext4_da_block_invalidatepages()
1842 struct address_space *mapping = page->mapping; in __ext4_journalled_writepage() local
1843 struct inode *inode = mapping->host; in __ext4_journalled_writepage()
1934 struct inode *inode = page->mapping->host; in ext4_writepage()
2026 static int write_cache_pages_da(struct address_space *mapping, in write_cache_pages_da() argument
2032 struct inode *inode = mapping->host; in write_cache_pages_da()
2054 nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, tag, in write_cache_pages_da()
2097 unlikely(page->mapping != mapping)) { in write_cache_pages_da()
2187 static int ext4_da_writepages(struct address_space *mapping, in ext4_da_writepages() argument
2194 struct inode *inode = mapping->host; in ext4_da_writepages()
2201 struct ext4_sb_info *sbi = EXT4_SB(mapping->host->i_sb); in ext4_da_writepages()
2213 if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) in ext4_da_writepages()
2234 index = mapping->writeback_index; in ext4_da_writepages()
2281 tag_pages_for_writeback(mapping, index, end); in ext4_da_writepages()
2311 ret = write_cache_pages_da(mapping, wbc, &mpd, &done_index); in ext4_da_writepages()
2355 wbc->range_end = mapping->writeback_index - 1; in ext4_da_writepages()
2366 mapping->writeback_index = done_index; in ext4_da_writepages()
2413 static int ext4_da_write_begin(struct file *file, struct address_space *mapping, in ext4_da_write_begin() argument
2420 struct inode *inode = mapping->host; in ext4_da_write_begin()
2427 return ext4_write_begin(file, mapping, pos, in ext4_da_write_begin()
2448 page = grab_cache_page_write_begin(mapping, index, flags); in ext4_da_write_begin()
2484 struct inode *inode = page->mapping->host; in ext4_da_should_update_i_disksize()
2500 struct address_space *mapping, in ext4_da_write_end() argument
2504 struct inode *inode = mapping->host; in ext4_da_write_end()
2514 return ext4_ordered_write_end(file, mapping, pos, in ext4_da_write_end()
2517 return ext4_writeback_write_end(file, mapping, pos, in ext4_da_write_end()
2557 ret2 = generic_write_end(file, mapping, pos, len, copied, in ext4_da_write_end()
2645 static sector_t ext4_bmap(struct address_space *mapping, sector_t block) in ext4_bmap() argument
2647 struct inode *inode = mapping->host; in ext4_bmap()
2651 if (mapping_tagged(mapping, PAGECACHE_TAG_DIRTY) && in ext4_bmap()
2658 filemap_write_and_wait(mapping); in ext4_bmap()
2691 return generic_block_bmap(mapping, block, ext4_get_block); in ext4_bmap()
2701 ext4_readpages(struct file *file, struct address_space *mapping, in ext4_readpages() argument
2704 return mpage_readpages(mapping, pages, nr_pages, ext4_get_block); in ext4_readpages()
2729 journal_t *journal = EXT4_JOURNAL(page->mapping->host); in ext4_invalidatepage()
2736 if (ext4_should_dioread_nolock(page->mapping->host)) in ext4_invalidatepage()
2752 journal_t *journal = EXT4_JOURNAL(page->mapping->host); in ext4_releasepage()
3149 struct address_space *mapping, loff_t from, in ext4_discard_partial_page_buffers() argument
3152 struct inode *inode = mapping->host; in ext4_discard_partial_page_buffers()
3156 page = find_or_create_page(mapping, from >> PAGE_CACHE_SHIFT, in ext4_discard_partial_page_buffers()
3157 mapping_gfp_mask(mapping) & ~__GFP_FS); in ext4_discard_partial_page_buffers()
4627 struct address_space *mapping = inode->i_mapping; in ext4_page_mkwrite() local
4652 if (page->mapping != mapping || page_offset(page) > size) { in ext4_page_mkwrite()