Home
last modified time | relevance | path

Searched refs:mapping (Results 1 – 25 of 189) sorted by relevance

12345678

/fs/gfs2/
Daops.c98 struct inode *inode = page->mapping->host; in gfs2_writepage_common()
112 page->mapping->a_ops->invalidatepage(page, 0); in gfs2_writepage_common()
152 struct inode *inode = page->mapping->host; in gfs2_ordered_writepage()
181 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage()
206 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
241 static int gfs2_writeback_writepages(struct address_space *mapping, in gfs2_writeback_writepages() argument
244 return mpage_writepages(mapping, wbc, gfs2_get_block_noalloc); in gfs2_writeback_writepages()
258 static int gfs2_write_jdata_pagevec(struct address_space *mapping, in gfs2_write_jdata_pagevec() argument
263 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec()
281 if (unlikely(page->mapping != mapping)) { in gfs2_write_jdata_pagevec()
[all …]
Dmeta_io.c108 struct address_space *mapping = gfs2_glock2aspace(gl); in gfs2_meta_sync() local
111 filemap_fdatawrite(mapping); in gfs2_meta_sync()
112 error = filemap_fdatawait(mapping); in gfs2_meta_sync()
129 struct address_space *mapping = gfs2_glock2aspace(gl); in gfs2_getbuf() local
143 page = grab_cache_page(mapping, index); in gfs2_getbuf()
149 page = find_lock_page(mapping, index); in gfs2_getbuf()
309 struct address_space *mapping = bh->b_page->mapping; in gfs2_remove_from_journal() local
310 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_remove_from_journal()
/fs/
Dbuffer.c340 set_bit(AS_EIO, &page->mapping->flags); in end_buffer_async_write()
556 int sync_mapping_buffers(struct address_space *mapping) in sync_mapping_buffers() argument
558 struct address_space *buffer_mapping = mapping->assoc_mapping; in sync_mapping_buffers()
560 if (buffer_mapping == NULL || list_empty(&mapping->private_list)) in sync_mapping_buffers()
564 &mapping->private_list); in sync_mapping_buffers()
587 struct address_space *mapping = inode->i_mapping; in mark_buffer_dirty_inode() local
588 struct address_space *buffer_mapping = bh->b_page->mapping; in mark_buffer_dirty_inode()
591 if (!mapping->assoc_mapping) { in mark_buffer_dirty_inode()
592 mapping->assoc_mapping = buffer_mapping; in mark_buffer_dirty_inode()
594 BUG_ON(mapping->assoc_mapping != buffer_mapping); in mark_buffer_dirty_inode()
[all …]
Dmpage.c65 if (page->mapping) in mpage_end_io()
66 set_bit(AS_EIO, &page->mapping->flags); in mpage_end_io()
115 struct inode *inode = page->mapping->host; in map_buffer_to_page()
159 struct inode *inode = page->mapping->host; in do_mpage_readpage()
366 mpage_readpages(struct address_space *mapping, struct list_head *pages, in mpage_readpages() argument
382 if (!add_to_page_cache_lru(page, mapping, in mpage_readpages()
448 struct address_space *mapping = page->mapping; in __mpage_writepage() local
449 struct inode *inode = page->mapping->host; in __mpage_writepage()
639 ret = mapping->a_ops->writepage(page, wbc); in __mpage_writepage()
647 mapping_set_error(mapping, ret); in __mpage_writepage()
[all …]
/fs/xfs/
Dxfs_fs_subr.c47 struct address_space *mapping = VFS_I(ip)->i_mapping; in xfs_flushinval_pages() local
53 ret = filemap_write_and_wait_range(mapping, first, in xfs_flushinval_pages()
56 truncate_inode_pages_range(mapping, first, last); in xfs_flushinval_pages()
68 struct address_space *mapping = VFS_I(ip)->i_mapping; in xfs_flush_pages() local
73 ret = -filemap_fdatawrite_range(mapping, first, in xfs_flush_pages()
89 struct address_space *mapping = VFS_I(ip)->i_mapping; in xfs_wait_on_pages() local
91 if (mapping_tagged(mapping, PAGECACHE_TAG_WRITEBACK)) { in xfs_wait_on_pages()
92 return -filemap_fdatawait_range(mapping, first, in xfs_wait_on_pages()
/fs/9p/
Dvfs_addr.c58 inode = page->mapping->host; in v9fs_fid_readpage()
112 static int v9fs_vfs_readpages(struct file *filp, struct address_space *mapping, in v9fs_vfs_readpages() argument
118 inode = mapping->host; in v9fs_vfs_readpages()
121 ret = v9fs_readpages_from_fscache(inode, mapping, pages, &nr_pages); in v9fs_vfs_readpages()
125 ret = read_cache_pages(mapping, pages, (void *)v9fs_vfs_readpage, filp); in v9fs_vfs_readpages()
167 struct inode *inode = page->mapping->host; in v9fs_vfs_writepage_locked()
210 mapping_set_error(page->mapping, retval); in v9fs_vfs_writepage()
227 struct inode *inode = page->mapping->host; in v9fs_launder_page()
273 static int v9fs_write_begin(struct file *filp, struct address_space *mapping, in v9fs_write_begin() argument
281 struct inode *inode = mapping->host; in v9fs_write_begin()
[all …]
/fs/nilfs2/
Dpage.c62 struct address_space *mapping, in nilfs_grab_buffer() argument
71 page = grab_cache_page(mapping, index); in nilfs_grab_buffer()
179 m = page->mapping; in nilfs_page_bug()
353 page->mapping = NULL; in nilfs_copy_back_pages()
356 page->mapping = dmap; in nilfs_copy_back_pages()
373 void nilfs_clear_dirty_pages(struct address_space *mapping) in nilfs_clear_dirty_pages() argument
381 while (pagevec_lookup_tag(&pvec, mapping, &index, PAGECACHE_TAG_DIRTY, in nilfs_clear_dirty_pages()
428 void nilfs_mapping_init(struct address_space *mapping, struct inode *inode, in nilfs_mapping_init() argument
431 mapping->host = inode; in nilfs_mapping_init()
432 mapping->flags = 0; in nilfs_mapping_init()
[all …]
Ddir.c90 struct address_space *mapping, in nilfs_commit_chunk() argument
93 struct inode *dir = mapping->host; in nilfs_commit_chunk()
100 copied = block_write_end(NULL, mapping, pos, len, len, page, NULL); in nilfs_commit_chunk()
112 struct inode *dir = page->mapping->host; in nilfs_check_page()
187 struct address_space *mapping = dir->i_mapping; in nilfs_get_page() local
188 struct page *page = read_mapping_page(mapping, n, NULL); in nilfs_get_page()
432 struct address_space *mapping = page->mapping; in nilfs_set_link() local
440 nilfs_commit_chunk(page, mapping, from, to); in nilfs_set_link()
531 nilfs_commit_chunk(page, page->mapping, from, to); in nilfs_add_link()
550 struct address_space *mapping = page->mapping; in nilfs_delete_entry() local
[all …]
/fs/ecryptfs/
Dmmap.c148 page_virt, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
170 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
197 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_readpage()
203 page->mapping->host); in ecryptfs_readpage()
220 page->mapping->host); in ecryptfs_readpage()
251 struct inode *inode = page->mapping->host; in fill_zeros_to_end_of_page()
279 struct address_space *mapping, in ecryptfs_write_begin() argument
288 page = grab_cache_page_write_begin(mapping, index, flags); in ecryptfs_write_begin()
296 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin()
300 page, index, 0, PAGE_CACHE_SIZE, mapping->host); in ecryptfs_write_begin()
[all …]
/fs/ceph/
Daddr.c70 struct address_space *mapping = page->mapping; in ceph_set_page_dirty() local
76 if (unlikely(!mapping)) in ceph_set_page_dirty()
81 mapping->host, page, page->index); in ceph_set_page_dirty()
85 inode = mapping->host; in ceph_set_page_dirty()
104 mapping->host, page, page->index, in ceph_set_page_dirty()
111 spin_lock_irq(&mapping->tree_lock); in ceph_set_page_dirty()
112 if (page->mapping) { /* Race with truncate? */ in ceph_set_page_dirty()
114 account_page_dirtied(page, page->mapping); in ceph_set_page_dirty()
115 radix_tree_tag_set(&mapping->page_tree, in ceph_set_page_dirty()
129 spin_unlock_irq(&mapping->tree_lock); in ceph_set_page_dirty()
[all …]
/fs/afs/
Dfile.c26 static int afs_readpages(struct file *filp, struct address_space *mapping,
128 struct inode *inode = page->mapping->host; in afs_page_filler()
226 struct inode *inode = page->mapping->host; in afs_readpage()
241 static int afs_readpages(struct file *file, struct address_space *mapping, in afs_readpages() argument
249 key_serial(key), mapping->host->i_ino, nr_pages); in afs_readpages()
253 vnode = AFS_FS_I(mapping->host); in afs_readpages()
262 mapping, in afs_readpages()
267 mapping_gfp_mask(mapping)); in afs_readpages()
292 ret = read_cache_pages(mapping, pages, afs_page_filler, key); in afs_readpages()
325 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); in afs_invalidatepage()
[all …]
Dwrite.c118 int afs_write_begin(struct file *file, struct address_space *mapping, in afs_write_begin() argument
146 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin()
244 int afs_write_end(struct file *file, struct address_space *mapping, in afs_write_end() argument
463 static int afs_writepages_region(struct address_space *mapping, in afs_writepages_region() argument
474 n = find_get_pages_tag(mapping, &index, PAGECACHE_TAG_DIRTY, in afs_writepages_region()
495 if (page->mapping != mapping) { in afs_writepages_region()
537 int afs_writepages(struct address_space *mapping, in afs_writepages() argument
546 start = mapping->writeback_index; in afs_writepages()
548 ret = afs_writepages_region(mapping, wbc, start, end, &next); in afs_writepages()
550 ret = afs_writepages_region(mapping, wbc, 0, start, in afs_writepages()
[all …]
/fs/hfsplus/
Dbitmap.c23 struct address_space *mapping; in hfsplus_block_allocate() local
35 mapping = sbi->alloc_file->i_mapping; in hfsplus_block_allocate()
36 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL); in hfsplus_block_allocate()
80 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
131 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
167 struct address_space *mapping; in hfsplus_block_free() local
182 mapping = sbi->alloc_file->i_mapping; in hfsplus_block_free()
184 page = read_mapping_page(mapping, pnr, NULL); in hfsplus_block_free()
216 page = read_mapping_page(mapping, ++pnr, NULL); in hfsplus_block_free()
/fs/jfs/
Dinode.c286 static int jfs_writepages(struct address_space *mapping, in jfs_writepages() argument
289 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()
297 static int jfs_readpages(struct file *file, struct address_space *mapping, in jfs_readpages() argument
300 return mpage_readpages(mapping, pages, nr_pages, jfs_get_block); in jfs_readpages()
303 static int jfs_write_begin(struct file *file, struct address_space *mapping, in jfs_write_begin() argument
309 ret = nobh_write_begin(mapping, pos, len, flags, pagep, fsdata, in jfs_write_begin()
312 loff_t isize = mapping->host->i_size; in jfs_write_begin()
314 vmtruncate(mapping->host, isize); in jfs_write_begin()
320 static sector_t jfs_bmap(struct address_space *mapping, sector_t block) in jfs_bmap() argument
322 return generic_block_bmap(mapping, block, jfs_get_block); in jfs_bmap()
/fs/ocfs2/
Daops.c276 struct inode *inode = page->mapping->host; in ocfs2_readpage()
347 static int ocfs2_readpages(struct file *filp, struct address_space *mapping, in ocfs2_readpages() argument
351 struct inode *inode = mapping->host; in ocfs2_readpages()
385 err = mpage_readpages(mapping, pages, nr_pages, ocfs2_get_block); in ocfs2_readpages()
408 (unsigned long long)OCFS2_I(page->mapping->host)->ip_blkno, in ocfs2_writepage()
450 static sector_t ocfs2_bmap(struct address_space *mapping, sector_t block) in ocfs2_bmap() argument
455 struct inode *inode = mapping->host; in ocfs2_bmap()
608 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_invalidatepage()
615 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_releasepage()
1128 static int ocfs2_grab_pages_for_write(struct address_space *mapping, in ocfs2_grab_pages_for_write() argument
[all …]
/fs/hpfs/
Dfile.c108 static int hpfs_write_begin(struct file *file, struct address_space *mapping, in hpfs_write_begin() argument
115 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in hpfs_write_begin()
117 &hpfs_i(mapping->host)->mmu_private); in hpfs_write_begin()
119 loff_t isize = mapping->host->i_size; in hpfs_write_begin()
121 vmtruncate(mapping->host, isize); in hpfs_write_begin()
127 static sector_t _hpfs_bmap(struct address_space *mapping, sector_t block) in _hpfs_bmap() argument
129 return generic_block_bmap(mapping,block,hpfs_get_block); in _hpfs_bmap()
/fs/ext4/
Dinode.c359 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
[all …]
/fs/omfs/
Dfile.c293 static int omfs_readpages(struct file *file, struct address_space *mapping, in omfs_readpages() argument
296 return mpage_readpages(mapping, pages, nr_pages, omfs_get_block); in omfs_readpages()
305 omfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in omfs_writepages() argument
307 return mpage_writepages(mapping, wbc, omfs_get_block); in omfs_writepages()
310 static int omfs_write_begin(struct file *file, struct address_space *mapping, in omfs_write_begin() argument
316 ret = block_write_begin(mapping, pos, len, flags, pagep, in omfs_write_begin()
319 loff_t isize = mapping->host->i_size; in omfs_write_begin()
321 vmtruncate(mapping->host, isize); in omfs_write_begin()
327 static sector_t omfs_bmap(struct address_space *mapping, sector_t block) in omfs_bmap() argument
329 return generic_block_bmap(mapping, block, omfs_get_block); in omfs_bmap()
/fs/logfs/
Dfile.c12 static int logfs_write_begin(struct file *file, struct address_space *mapping, in logfs_write_begin() argument
16 struct inode *inode = mapping->host; in logfs_write_begin()
20 page = grab_cache_page_write_begin(mapping, index, flags); in logfs_write_begin()
38 static int logfs_write_end(struct file *file, struct address_space *mapping, in logfs_write_end() argument
42 struct inode *inode = mapping->host; in logfs_write_end()
105 struct inode *inode = page->mapping->host; in __logfs_writepage()
119 struct inode *inode = page->mapping->host; in logfs_writepage()
167 struct super_block *sb = page->mapping->host->i_sb; in logfs_invalidatepage()
Ddev_mtd.c76 struct address_space *mapping = super->s_mapping_inode->i_mapping; in logfs_mtd_erase_mapping() local
81 page = find_get_page(mapping, index); in logfs_mtd_erase_mapping()
151 struct address_space *mapping = super->s_mapping_inode->i_mapping; in logfs_mtd_find_first_sb() local
162 return read_cache_page(mapping, *ofs >> PAGE_SHIFT, filler, sb); in logfs_mtd_find_first_sb()
168 struct address_space *mapping = super->s_mapping_inode->i_mapping; in logfs_mtd_find_last_sb() local
180 return read_cache_page(mapping, *ofs >> PAGE_SHIFT, filler, sb); in logfs_mtd_find_last_sb()
187 struct address_space *mapping = super->s_mapping_inode->i_mapping; in __logfs_mtd_writeseg() local
192 page = find_lock_page(mapping, index + i); in __logfs_mtd_writeseg()
/fs/nfs/
Dfile.c337 static int nfs_write_begin(struct file *file, struct address_space *mapping, in nfs_write_begin() argument
349 mapping->host->i_ino, len, (long long) pos); in nfs_write_begin()
356 ret = wait_on_bit(&NFS_I(mapping->host)->flags, NFS_INO_FLUSHING, in nfs_write_begin()
361 page = grab_cache_page_write_begin(mapping, index, flags); in nfs_write_begin()
381 static int nfs_write_end(struct file *file, struct address_space *mapping, in nfs_write_end() argument
391 mapping->host->i_ino, len, (long long) pos); in nfs_write_end()
437 nfs_wb_page_cancel(page->mapping->host, page); in nfs_invalidate_page()
439 nfs_fscache_invalidate_page(page, page->mapping->host); in nfs_invalidate_page()
450 struct address_space *mapping = page->mapping; in nfs_release_page() local
457 if (mapping && (gfp & GFP_KERNEL) == GFP_KERNEL && in nfs_release_page()
[all …]
/fs/bfs/
Dfile.c164 static int bfs_write_begin(struct file *file, struct address_space *mapping, in bfs_write_begin() argument
170 ret = block_write_begin(mapping, pos, len, flags, pagep, in bfs_write_begin()
173 loff_t isize = mapping->host->i_size; in bfs_write_begin()
175 vmtruncate(mapping->host, isize); in bfs_write_begin()
181 static sector_t bfs_bmap(struct address_space *mapping, sector_t block) in bfs_bmap() argument
183 return generic_block_bmap(mapping, block, bfs_get_block); in bfs_bmap()
/fs/exofs/
Ddir.c65 struct address_space *mapping = page->mapping; in exofs_commit_chunk() local
66 struct inode *dir = mapping->host; in exofs_commit_chunk()
90 struct inode *dir = page->mapping->host; in exofs_check_page()
165 struct address_space *mapping = dir->i_mapping; in exofs_get_page() local
166 struct page *page = read_mapping_page(mapping, n, NULL); in exofs_get_page()
420 err = exofs_write_begin(NULL, page->mapping, pos, len, in exofs_set_link()
502 err = exofs_write_begin(NULL, page->mapping, pos, rec_len, 0, in exofs_add_link()
533 struct address_space *mapping = page->mapping; in exofs_delete_entry() local
534 struct inode *inode = mapping->host; in exofs_delete_entry()
559 err = exofs_write_begin(NULL, page->mapping, pos, to - from, 0, in exofs_delete_entry()
[all …]
/fs/jffs2/
Dfile.c24 static int jffs2_write_end(struct file *filp, struct address_space *mapping,
27 static int jffs2_write_begin(struct file *filp, struct address_space *mapping,
125 struct jffs2_inode_info *f = JFFS2_INODE_INFO(pg->mapping->host); in jffs2_readpage()
129 ret = jffs2_do_readpage_unlock(pg->mapping->host, pg); in jffs2_readpage()
134 static int jffs2_write_begin(struct file *filp, struct address_space *mapping, in jffs2_write_begin() argument
139 struct inode *inode = mapping->host; in jffs2_write_begin()
158 pg = grab_cache_page_write_begin(mapping, index, flags); in jffs2_write_begin()
241 static int jffs2_write_end(struct file *filp, struct address_space *mapping, in jffs2_write_end() argument
248 struct inode *inode = mapping->host; in jffs2_write_end()
/fs/freevxfs/
Dvxfs_subr.c68 vxfs_get_page(struct address_space *mapping, u_long n) in vxfs_get_page() argument
72 pp = read_mapping_page(mapping, n, NULL); in vxfs_get_page()
180 vxfs_bmap(struct address_space *mapping, sector_t block) in vxfs_bmap() argument
182 return generic_block_bmap(mapping, block, vxfs_getblk); in vxfs_bmap()

12345678