Home
last modified time | relevance | path

Searched refs:i_mapping (Results 1 – 25 of 248) sorted by relevance

12345678910

/fs/nilfs2/
Dmdt.c80 bh = nilfs_grab_buffer(inode, inode->i_mapping, block, 0); in nilfs_mdt_create_block()
121 bh = nilfs_grab_buffer(inode, inode->i_mapping, blkoff, 0); in nilfs_mdt_submit_block()
365 page = find_lock_page(inode->i_mapping, index); in nilfs_mdt_forget_block()
384 invalidate_inode_pages2_range(inode->i_mapping, index, index) != 0) in nilfs_mdt_forget_block()
456 mapping_set_gfp_mask(inode->i_mapping, gfp_mask); in nilfs_mdt_init()
460 inode->i_mapping->a_ops = &def_mdt_aops; in nilfs_mdt_init()
542 ret = nilfs_copy_dirty_pages(s_inode->i_mapping, inode->i_mapping); in nilfs_mdt_save_to_shadow_map()
546 ret = nilfs_copy_dirty_pages(NILFS_I(s_inode)->i_assoc_inode->i_mapping, in nilfs_mdt_save_to_shadow_map()
547 ii->i_assoc_inode->i_mapping); in nilfs_mdt_save_to_shadow_map()
563 page = grab_cache_page(shadow->inode->i_mapping, bh->b_page->index); in nilfs_mdt_freeze_buffer()
[all …]
Dgcinode.c65 bh = nilfs_grab_buffer(inode, inode->i_mapping, blkoff, 0); in nilfs_gccache_submit_read_data()
132 ret = nilfs_btnode_submit_block(btnc_inode->i_mapping, in nilfs_gccache_submit_read_node()
168 mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); in nilfs_init_gcinode()
169 inode->i_mapping->a_ops = &empty_aops; in nilfs_init_gcinode()
189 nilfs_btnode_cache_clear(ii->i_assoc_inode->i_mapping); in nilfs_remove_all_gcinodes()
/fs/f2fs/
Dverity.c51 page = read_mapping_page(inode->i_mapping, pos >> PAGE_SHIFT, in pagecache_read()
84 res = pagecache_write_begin(NULL, inode->i_mapping, pos, n, 0, in pagecache_write()
91 res = pagecache_write_end(NULL, inode->i_mapping, pos, n, n, in pagecache_write()
176 err = filemap_write_and_wait(inode->i_mapping); in f2fs_end_enable_verity()
206 truncate_inode_pages(inode->i_mapping, inode->i_size); in f2fs_end_enable_verity()
262 page = find_get_page_flags(inode->i_mapping, index, FGP_ACCESSED); in f2fs_read_merkle_tree_page()
264 DEFINE_READAHEAD(ractl, NULL, inode->i_mapping, index); in f2fs_read_merkle_tree_page()
270 page = read_mapping_page(inode->i_mapping, index, NULL); in f2fs_read_merkle_tree_page()
Dinode.c513 inode->i_mapping->a_ops = &f2fs_node_aops; in f2fs_iget()
514 mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); in f2fs_iget()
516 inode->i_mapping->a_ops = &f2fs_meta_aops; in f2fs_iget()
517 mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); in f2fs_iget()
520 inode->i_mapping->a_ops = &f2fs_compress_aops; in f2fs_iget()
522 mapping_set_gfp_mask(inode->i_mapping, in f2fs_iget()
527 inode->i_mapping->a_ops = &f2fs_dblock_aops; in f2fs_iget()
531 inode->i_mapping->a_ops = &f2fs_dblock_aops; in f2fs_iget()
532 mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); in f2fs_iget()
539 inode->i_mapping->a_ops = &f2fs_dblock_aops; in f2fs_iget()
/fs/ext4/
Dverity.c50 page = read_mapping_page(inode->i_mapping, pos >> PAGE_SHIFT, in pagecache_read()
85 res = pagecache_write_begin(NULL, inode->i_mapping, pos, n, 0, in pagecache_write()
92 res = pagecache_write_end(NULL, inode->i_mapping, pos, n, n, in pagecache_write()
223 err = filemap_write_and_wait(inode->i_mapping); in ext4_end_enable_verity()
266 truncate_inode_pages(inode->i_mapping, inode->i_size); in ext4_end_enable_verity()
374 page = find_get_page_flags(inode->i_mapping, index, FGP_ACCESSED); in ext4_read_merkle_tree_page()
376 DEFINE_READAHEAD(ractl, NULL, inode->i_mapping, index); in ext4_read_merkle_tree_page()
382 page = read_mapping_page(inode->i_mapping, index, NULL); in ext4_read_merkle_tree_page()
Dfsync.c70 ret = sync_mapping_buffers(inode->i_mapping); in ext4_sync_parent()
86 ret = sync_mapping_buffers(inode->i_mapping); in ext4_fsync_nojournal()
/fs/coda/
Dfile.c158 if (coda_inode->i_mapping == &coda_inode->i_data) in coda_file_mmap()
159 coda_inode->i_mapping = host_inode->i_mapping; in coda_file_mmap()
163 else if (coda_inode->i_mapping != host_inode->i_mapping) { in coda_file_mmap()
253 if (coda_inode->i_mapping == &host_inode->i_data) { in coda_release()
256 coda_inode->i_mapping = &coda_inode->i_data; in coda_release()
280 err = filemap_write_and_wait_range(coda_inode->i_mapping, start, end); in coda_fsync()
/fs/freevxfs/
Dvxfs_inode.c185 vip->vfs_inode.i_mapping->a_ops = &vxfs_aops; in vxfs_blkiget()
217 pp = vxfs_get_page(ilistp->i_mapping, ino * VXFS_ISIZE / PAGE_SIZE); in __vxfs_iget()
225 vip->vfs_inode.i_mapping->a_ops = &vxfs_aops; in __vxfs_iget()
305 ip->i_mapping->a_ops = aops; in vxfs_iget()
309 ip->i_mapping->a_ops = aops; in vxfs_iget()
314 ip->i_mapping->a_ops = &vxfs_aops; in vxfs_iget()
/fs/9p/
Dvfs_file.c128 filemap_write_and_wait(inode->i_mapping); in v9fs_file_lock()
319 filemap_write_and_wait(inode->i_mapping); in v9fs_file_lock_dotl()
358 filemap_write_and_wait(inode->i_mapping); in v9fs_file_flock_dotl()
430 if (inode->i_mapping && inode->i_mapping->nrpages) in v9fs_file_write_iter()
431 invalidate_inode_pages2_range(inode->i_mapping, in v9fs_file_write_iter()
565 if (page->mapping != inode->i_mapping) in v9fs_vm_page_mkwrite()
628 if (!mapping_can_writeback(inode->i_mapping)) in v9fs_mmap_vm_close()
/fs/hfsplus/
Dsuper.c34 inode->i_mapping->a_ops = &hfsplus_btree_aops; in hfsplus_system_read_inode()
38 inode->i_mapping->a_ops = &hfsplus_btree_aops; in hfsplus_system_read_inode()
42 inode->i_mapping->a_ops = &hfsplus_aops; in hfsplus_system_read_inode()
49 inode->i_mapping->a_ops = &hfsplus_btree_aops; in hfsplus_system_read_inode()
196 error = filemap_write_and_wait(sbi->cat_tree->inode->i_mapping); in hfsplus_sync_fs()
197 error2 = filemap_write_and_wait(sbi->ext_tree->inode->i_mapping); in hfsplus_sync_fs()
202 filemap_write_and_wait(sbi->attr_tree->inode->i_mapping); in hfsplus_sync_fs()
206 error2 = filemap_write_and_wait(sbi->alloc_file->i_mapping); in hfsplus_sync_fs()
Dinode.c315 error = filemap_write_and_wait(sbi->cat_tree->inode->i_mapping); in hfsplus_file_fsync()
319 filemap_write_and_wait(sbi->ext_tree->inode->i_mapping); in hfsplus_file_fsync()
328 sbi->attr_tree->inode->i_mapping); in hfsplus_file_fsync()
337 error2 = filemap_write_and_wait(sbi->alloc_file->i_mapping); in hfsplus_file_fsync()
410 inode->i_mapping->a_ops = &hfsplus_aops; in hfsplus_new_inode()
416 inode->i_mapping->a_ops = &hfsplus_aops; in hfsplus_new_inode()
542 inode->i_mapping->a_ops = &hfsplus_aops; in hfsplus_cat_read_inode()
546 inode->i_mapping->a_ops = &hfsplus_aops; in hfsplus_cat_read_inode()
/fs/afs/
Ddir_edit.c209 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add()
210 page0 = find_or_create_page(vnode->vfs_inode.i_mapping, 0, gfp); in afs_edit_dir_add()
241 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add()
242 page = find_or_create_page(vnode->vfs_inode.i_mapping, in afs_edit_dir_add()
388 page0 = find_lock_page(vnode->vfs_inode.i_mapping, 0); in afs_edit_dir_remove()
408 page = find_lock_page(vnode->vfs_inode.i_mapping, index); in afs_edit_dir_remove()
/fs/iomap/
Dseek.c21 const struct address_space_operations *ops = inode->i_mapping->a_ops; in page_seek_hole_data()
46 if (unlikely(page->mapping != inode->i_mapping)) in page_seek_hole_data()
90 nr_pages = pagevec_lookup_range(&pvec, inode->i_mapping, &index, in page_cache_seek_hole_data()
/fs/btrfs/tests/
Dextent-io-tests.c32 ret = find_get_pages_contig(inode->i_mapping, index, in process_page_range()
94 page = find_or_create_page(inode->i_mapping, index, GFP_KERNEL); in test_find_delalloc()
138 locked_page = find_lock_page(inode->i_mapping, in test_find_delalloc()
173 locked_page = find_lock_page(inode->i_mapping, test_start >> in test_find_delalloc()
224 page = find_get_page(inode->i_mapping, in test_find_delalloc()
/fs/nfs/
Dsymlink.c58 page = find_get_page(inode->i_mapping, 0); in nfs_get_link()
66 err = ERR_PTR(nfs_revalidate_mapping(inode, inode->i_mapping)); in nfs_get_link()
/fs/ramfs/
Dfile-nommu.c69 gfp_t gfp = mapping_gfp_mask(inode->i_mapping); in ramfs_nommu_expand_for_mapping()
107 ret = add_to_page_cache_lru(page, inode->i_mapping, loop, in ramfs_nommu_expand_for_mapping()
227 nr = find_get_pages_contig(inode->i_mapping, pgoff, lpages, pages); in ramfs_nommu_get_unmapped_area()
Dinode.c71 inode->i_mapping->a_ops = &ramfs_aops; in ramfs_get_inode()
72 mapping_set_gfp_mask(inode->i_mapping, GFP_HIGHUSER); in ramfs_get_inode()
73 mapping_set_unevictable(inode->i_mapping); in ramfs_get_inode()
/fs/
Ddrop_caches.c31 (inode->i_mapping->nrpages == 0 && !need_resched())) { in drop_pagecache_sb()
39 invalidate_mapping_pages(inode->i_mapping, 0, -1); in drop_pagecache_sb()
Dremap_range.c166 page = read_mapping_page(inode->i_mapping, offset >> PAGE_SHIFT, NULL); in vfs_dedupe_get_page()
248 src_page->mapping != src->i_mapping || in vfs_dedupe_file_range_compare()
249 dest_page->mapping != dest->i_mapping) { in vfs_dedupe_file_range_compare()
339 ret = filemap_write_and_wait_range(inode_in->i_mapping, in generic_remap_file_range_prep()
344 ret = filemap_write_and_wait_range(inode_out->i_mapping, in generic_remap_file_range_prep()
Dblock_dev.c80 struct address_space *mapping = bdev->bd_inode->i_mapping; in kill_bdev()
92 struct address_space *mapping = bdev->bd_inode->i_mapping; in invalidate_bdev()
128 truncate_inode_pages_range(bdev->bd_inode->i_mapping, lstart, lend); in truncate_bdev_range()
138 return invalidate_inode_pages2_range(bdev->bd_inode->i_mapping, in truncate_bdev_range()
529 return filemap_flush(bdev->bd_inode->i_mapping); in __sync_blockdev()
530 return filemap_write_and_wait(bdev->bd_inode->i_mapping); in __sync_blockdev()
960 ret += inode->i_mapping->nrpages; in nr_blockdev_pages()
1007 inode->i_mapping = bdev->bd_inode->i_mapping; in bd_acquire()
1024 inode->i_mapping = &inode->i_data; in bd_forget()
1765 filp->f_mapping = bdev->bd_inode->i_mapping; in blkdev_open()
[all …]
/fs/jfs/
Djfs_umount.c98 filemap_write_and_wait(sbi->direct_inode->i_mapping); in jfs_umount()
150 filemap_write_and_wait(sbi->direct_inode->i_mapping); in jfs_umount_rw()
/fs/qnx6/
Dinode.c185 struct address_space *mapping = root->i_mapping; in qnx6_checkroot()
515 inode->i_mapping->a_ops = &qnx6_aops; in qnx6_private_inode()
548 mapping = sbi->inodes->i_mapping; in qnx6_iget()
579 inode->i_mapping->a_ops = &qnx6_aops; in qnx6_iget()
583 inode->i_mapping->a_ops = &qnx6_aops; in qnx6_iget()
587 inode->i_mapping->a_ops = &qnx6_aops; in qnx6_iget()
/fs/xfs/
Dxfs_pnfs.c132 error = filemap_write_and_wait(inode->i_mapping); in xfs_fs_map_blocks()
135 error = invalidate_inode_pages2(inode->i_mapping); in xfs_fs_map_blocks()
264 error = invalidate_inode_pages2_range(inode->i_mapping, in xfs_fs_commit_blocks()
/fs/ext2/
Dnamei.c179 inode->i_mapping->a_ops = &ext2_nobh_aops; in ext2_symlink()
181 inode->i_mapping->a_ops = &ext2_aops; in ext2_symlink()
247 inode->i_mapping->a_ops = &ext2_nobh_aops; in ext2_mkdir()
249 inode->i_mapping->a_ops = &ext2_aops; in ext2_mkdir()
Dinode.c847 ext2_write_failed(inode->i_mapping, offset + length); in ext2_iomap_end()
1300 error = nobh_truncate_page(inode->i_mapping, in ext2_setsize()
1303 error = block_truncate_page(inode->i_mapping, in ext2_setsize()
1315 sync_mapping_buffers(inode->i_mapping); in ext2_setsize()
1392 inode->i_mapping->a_ops = &ext2_dax_aops; in ext2_set_file_ops()
1394 inode->i_mapping->a_ops = &ext2_nobh_aops; in ext2_set_file_ops()
1396 inode->i_mapping->a_ops = &ext2_aops; in ext2_set_file_ops()
1495 inode->i_mapping->a_ops = &ext2_nobh_aops; in ext2_iget()
1497 inode->i_mapping->a_ops = &ext2_aops; in ext2_iget()
1508 inode->i_mapping->a_ops = &ext2_nobh_aops; in ext2_iget()
[all …]

12345678910