Home
last modified time | relevance | path

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

123456789

/fs/
Ddax.c67 static wait_queue_head_t *dax_entry_waitqueue(struct address_space *mapping, in dax_entry_waitqueue() argument
70 unsigned long hash = hash_long((unsigned long)mapping ^ index, in dax_entry_waitqueue()
302 struct address_space *mapping; member
318 if (key->mapping != ewait->key.mapping || in wake_exceptional_entry_func()
328 static inline int slot_locked(struct address_space *mapping, void **slot) in slot_locked() argument
331 radix_tree_deref_slot_protected(slot, &mapping->tree_lock); in slot_locked()
339 static inline void *lock_slot(struct address_space *mapping, void **slot) in lock_slot() argument
342 radix_tree_deref_slot_protected(slot, &mapping->tree_lock); in lock_slot()
353 static inline void *unlock_slot(struct address_space *mapping, void **slot) in unlock_slot() argument
356 radix_tree_deref_slot_protected(slot, &mapping->tree_lock); in unlock_slot()
[all …]
Dbuffer.c354 mapping_set_error(page->mapping, -EIO); in end_buffer_async_write()
568 int sync_mapping_buffers(struct address_space *mapping) in sync_mapping_buffers() argument
570 struct address_space *buffer_mapping = mapping->private_data; in sync_mapping_buffers()
572 if (buffer_mapping == NULL || list_empty(&mapping->private_list)) in sync_mapping_buffers()
576 &mapping->private_list); in sync_mapping_buffers()
599 struct address_space *mapping = inode->i_mapping; in mark_buffer_dirty_inode() local
600 struct address_space *buffer_mapping = bh->b_page->mapping; in mark_buffer_dirty_inode()
603 if (!mapping->private_data) { in mark_buffer_dirty_inode()
604 mapping->private_data = buffer_mapping; in mark_buffer_dirty_inode()
606 BUG_ON(mapping->private_data != buffer_mapping); in mark_buffer_dirty_inode()
[all …]
Dmpage.c64 trace_android_fs_dataread_end(first_page->mapping->host, in mpage_end_io()
87 first_page->mapping->host); in mpage_bio_submit()
89 first_page->mapping->host, in mpage_bio_submit()
140 struct inode *inode = page->mapping->host; in map_buffer_to_page()
185 struct inode *inode = page->mapping->host; in do_mpage_readpage()
396 mpage_readpages(struct address_space *mapping, struct list_head *pages, in mpage_readpages() argument
404 gfp_t gfp = readahead_gfp_mask(mapping); in mpage_readpages()
413 if (!add_to_page_cache_lru(page, mapping, in mpage_readpages()
440 gfp_t gfp = mapping_gfp_constraint(page->mapping, GFP_KERNEL); in mpage_readpage()
520 struct address_space *mapping = page->mapping; in __mpage_writepage() local
[all …]
/fs/gfs2/
Daops.c100 struct inode *inode = page->mapping->host; in gfs2_writepage_common()
114 page->mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE); in gfs2_writepage_common()
149 struct inode * const inode = page->mapping->host; in gfs2_write_full_page()
182 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage()
208 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
234 static int gfs2_writepages(struct address_space *mapping, in gfs2_writepages() argument
237 return mpage_writepages(mapping, wbc, gfs2_get_block_noalloc); in gfs2_writepages()
252 static int gfs2_write_jdata_pagevec(struct address_space *mapping, in gfs2_write_jdata_pagevec() argument
258 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec()
291 if (unlikely(page->mapping != mapping)) { in gfs2_write_jdata_pagevec()
[all …]
Dmeta_io.h43 static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping) in gfs2_mapping2sbd() argument
45 struct inode *inode = mapping->host; in gfs2_mapping2sbd()
46 if (mapping->a_ops == &gfs2_meta_aops) in gfs2_mapping2sbd()
47 return (((struct gfs2_glock *)mapping) - 1)->gl_name.ln_sbd; in gfs2_mapping2sbd()
48 else if (mapping->a_ops == &gfs2_rgrp_aops) in gfs2_mapping2sbd()
49 return container_of(mapping, struct gfs2_sbd, sd_aspace); in gfs2_mapping2sbd()
/fs/hpfs/
Dfile.c127 static int hpfs_readpages(struct file *file, struct address_space *mapping, in hpfs_readpages() argument
130 return mpage_readpages(mapping, pages, nr_pages, hpfs_get_block); in hpfs_readpages()
133 static int hpfs_writepages(struct address_space *mapping, in hpfs_writepages() argument
136 return mpage_writepages(mapping, wbc, hpfs_get_block); in hpfs_writepages()
139 static void hpfs_write_failed(struct address_space *mapping, loff_t to) in hpfs_write_failed() argument
141 struct inode *inode = mapping->host; in hpfs_write_failed()
153 static int hpfs_write_begin(struct file *file, struct address_space *mapping, in hpfs_write_begin() argument
160 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in hpfs_write_begin()
162 &hpfs_i(mapping->host)->mmu_private); in hpfs_write_begin()
164 hpfs_write_failed(mapping, pos + len); in hpfs_write_begin()
[all …]
/fs/9p/
Dvfs_addr.c54 struct inode *inode = page->mapping->host; in v9fs_fid_readpage()
111 static int v9fs_vfs_readpages(struct file *filp, struct address_space *mapping, in v9fs_vfs_readpages() argument
117 inode = mapping->host; in v9fs_vfs_readpages()
120 ret = v9fs_readpages_from_fscache(inode, mapping, pages, &nr_pages); in v9fs_vfs_readpages()
124 ret = read_cache_pages(mapping, pages, (void *)v9fs_vfs_readpage, filp); in v9fs_vfs_readpages()
162 struct inode *inode = page->mapping->host; in v9fs_vfs_writepage_locked()
203 mapping_set_error(page->mapping, retval); in v9fs_vfs_writepage()
220 struct inode *inode = page->mapping->host; in v9fs_launder_page()
267 static int v9fs_write_begin(struct file *filp, struct address_space *mapping, in v9fs_write_begin() argument
275 struct inode *inode = mapping->host; in v9fs_write_begin()
[all …]
/fs/f2fs/
Ddata.c38 struct address_space *mapping = page->mapping; in __is_cp_guaranteed() local
42 if (!mapping) in __is_cp_guaranteed()
45 inode = mapping->host; in __is_cp_guaranteed()
169 mapping_set_error(page->mapping, -EIO); in f2fs_write_end_io()
174 f2fs_bug_on(sbi, page->mapping == NODE_MAPPING(sbi) && in f2fs_write_end_io()
334 if (bvec->bv_page->mapping) in __has_merged_page()
342 if (inode && inode == target->mapping->host) in __has_merged_page()
698 struct address_space *mapping = inode->i_mapping; in get_read_data_page() local
704 page = f2fs_grab_cache_page(mapping, index, for_write); in get_read_data_page()
755 struct address_space *mapping = inode->i_mapping; in find_data_page() 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_SIZE, mapping->host); in ecryptfs_write_begin()
[all …]
/fs/nilfs2/
Dpage.c57 struct address_space *mapping, in nilfs_grab_buffer() argument
66 page = grab_cache_page(mapping, index); in nilfs_grab_buffer()
173 m = page->mapping; in nilfs_page_bug()
347 page->mapping = NULL; in nilfs_copy_back_pages()
350 page->mapping = dmap; in nilfs_copy_back_pages()
372 void nilfs_clear_dirty_pages(struct address_space *mapping, bool silent) in nilfs_clear_dirty_pages() argument
380 while (pagevec_lookup_tag(&pvec, mapping, &index, PAGECACHE_TAG_DIRTY, in nilfs_clear_dirty_pages()
401 struct inode *inode = page->mapping->host; in nilfs_clear_dirty_page()
454 void nilfs_mapping_init(struct address_space *mapping, struct inode *inode) in nilfs_mapping_init() argument
456 mapping->host = inode; in nilfs_mapping_init()
[all …]
Ddir.c105 struct address_space *mapping, in nilfs_commit_chunk() argument
108 struct inode *dir = mapping->host; in nilfs_commit_chunk()
115 copied = block_write_end(NULL, mapping, pos, len, len, page, NULL); in nilfs_commit_chunk()
127 struct inode *dir = page->mapping->host; in nilfs_check_page()
200 struct address_space *mapping = dir->i_mapping; in nilfs_get_page() local
201 struct page *page = read_mapping_page(mapping, n, NULL); in nilfs_get_page()
431 struct address_space *mapping = page->mapping; in nilfs_set_link() local
439 nilfs_commit_chunk(page, mapping, from, to); in nilfs_set_link()
530 nilfs_commit_chunk(page, page->mapping, from, to); in nilfs_add_link()
549 struct address_space *mapping = page->mapping; in nilfs_delete_entry() local
[all …]
/fs/squashfs/
Dfile.c378 struct inode *inode = page->mapping->host; in squashfs_copy_cache()
398 grab_cache_page_nowait(page->mapping, i); in squashfs_copy_cache()
422 struct inode *inode = page->mapping->host; in squashfs_readpage_fragment()
443 struct list_head *readahead_pages, struct address_space *mapping) in squashfs_readpages_fragment() argument
448 if (add_to_page_cache_lru(page, mapping, page->index, in squashfs_readpages_fragment()
449 mapping_gfp_constraint(mapping, GFP_KERNEL))) { in squashfs_readpages_fragment()
459 struct inode *inode = page->mapping->host; in squashfs_readpage_sparse()
471 struct address_space *mapping) in squashfs_readpages_sparse() argument
476 if (add_to_page_cache_lru(page, mapping, page->index, in squashfs_readpages_sparse()
477 mapping_gfp_constraint(mapping, GFP_KERNEL))) { in squashfs_readpages_sparse()
[all …]
Dfile_direct.c51 struct address_space *mapping) in actor_from_page_cache() argument
56 gfp_t gfp = mapping_gfp_constraint(mapping, GFP_KERNEL); in actor_from_page_cache()
69 if (add_to_page_cache_lru(cur_page, mapping, in actor_from_page_cache()
82 page[i] = grab_cache_page_nowait(mapping, n); in actor_from_page_cache()
107 struct address_space *mapping, in squashfs_readpages_block() argument
112 struct inode *inode = mapping->host; in squashfs_readpages_block()
149 mapping); in squashfs_readpages_block()
/fs/jfs/
Dinode.c289 static int jfs_writepages(struct address_space *mapping, in jfs_writepages() argument
292 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()
300 static int jfs_readpages(struct file *file, struct address_space *mapping, in jfs_readpages() argument
303 return mpage_readpages(mapping, pages, nr_pages, jfs_get_block); in jfs_readpages()
306 static void jfs_write_failed(struct address_space *mapping, loff_t to) in jfs_write_failed() argument
308 struct inode *inode = mapping->host; in jfs_write_failed()
316 static int jfs_write_begin(struct file *file, struct address_space *mapping, in jfs_write_begin() argument
322 ret = nobh_write_begin(mapping, pos, len, flags, pagep, fsdata, in jfs_write_begin()
325 jfs_write_failed(mapping, pos + len); in jfs_write_begin()
330 static sector_t jfs_bmap(struct address_space *mapping, sector_t block) in jfs_bmap() argument
[all …]
/fs/xfs/
Dxfs_aops.c124 mapping_set_error(bvec->bv_page->mapping, -EIO); in xfs_finish_page_writeback()
708 if (!page->mapping) in xfs_check_page_type()
740 trace_xfs_invalidatepage(page->mapping->host, page, offset, in xfs_vm_invalidatepage()
773 struct inode *inode = page->mapping->host; in xfs_aops_discard_page()
1025 mapping_set_error(page->mapping, error); in xfs_writepage_map()
1044 struct inode *inode = page->mapping->host; in xfs_do_writepage()
1166 struct address_space *mapping, in xfs_vm_writepages() argument
1174 xfs_iflags_clear(XFS_I(mapping->host), XFS_ITRUNCATED); in xfs_vm_writepages()
1175 if (dax_mapping(mapping)) in xfs_vm_writepages()
1176 return dax_writeback_mapping_range(mapping, in xfs_vm_writepages()
[all …]
/fs/afs/
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()
247 int afs_write_end(struct file *file, struct address_space *mapping, in afs_write_end() argument
469 static int afs_writepages_region(struct address_space *mapping, in afs_writepages_region() argument
480 n = find_get_pages_tag(mapping, &index, PAGECACHE_TAG_DIRTY, in afs_writepages_region()
501 if (page->mapping != mapping) { in afs_writepages_region()
544 int afs_writepages(struct address_space *mapping, in afs_writepages() argument
553 start = mapping->writeback_index; in afs_writepages()
555 ret = afs_writepages_region(mapping, wbc, start, end, &next); in afs_writepages()
557 ret = afs_writepages_region(mapping, wbc, 0, start, in afs_writepages()
[all …]
Dfile.c27 static int afs_readpages(struct file *filp, struct address_space *mapping,
128 struct inode *inode = page->mapping->host; in __afs_page_filler()
232 struct inode *inode = page->mapping->host; in afs_readpage()
247 static int afs_readpages(struct file *file, struct address_space *mapping, in afs_readpages() argument
255 key_serial(key), mapping->host->i_ino, nr_pages); in afs_readpages()
259 vnode = AFS_FS_I(mapping->host); in afs_readpages()
268 mapping, in afs_readpages()
273 mapping_gfp_mask(mapping)); in afs_readpages()
298 ret = read_cache_pages(mapping, pages, afs_page_filler, key); in afs_readpages()
332 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); in afs_invalidatepage()
[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()
218 page = read_mapping_page(mapping, ++pnr, NULL); in hfsplus_block_free()
/fs/omfs/
Dfile.c292 static int omfs_readpages(struct file *file, struct address_space *mapping, in omfs_readpages() argument
295 return mpage_readpages(mapping, pages, nr_pages, omfs_get_block); in omfs_readpages()
304 omfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in omfs_writepages() argument
306 return mpage_writepages(mapping, wbc, omfs_get_block); in omfs_writepages()
309 static void omfs_write_failed(struct address_space *mapping, loff_t to) in omfs_write_failed() argument
311 struct inode *inode = mapping->host; in omfs_write_failed()
319 static int omfs_write_begin(struct file *file, struct address_space *mapping, in omfs_write_begin() argument
325 ret = block_write_begin(mapping, pos, len, flags, pagep, in omfs_write_begin()
328 omfs_write_failed(mapping, pos + len); in omfs_write_begin()
333 static sector_t omfs_bmap(struct address_space *mapping, sector_t block) in omfs_bmap() argument
[all …]
/fs/hugetlbfs/
Dinode.c246 struct address_space *mapping = file->f_mapping; in hugetlbfs_read_iter() local
247 struct inode *inode = mapping->host; in hugetlbfs_read_iter()
274 page = find_lock_page(mapping, index); in hugetlbfs_read_iter()
305 struct address_space *mapping, in hugetlbfs_write_begin() argument
312 static int hugetlbfs_write_end(struct file *file, struct address_space *mapping, in hugetlbfs_write_end() argument
390 struct address_space *mapping = &inode->i_data; in remove_inode_hugepages() local
414 if (!pagevec_lookup(&pvec, mapping, next, lookup_nr)) in remove_inode_hugepages()
432 mapping, next, 0); in remove_inode_hugepages()
447 i_mmap_lock_write(mapping); in remove_inode_hugepages()
448 hugetlb_vmdelete_list(&mapping->i_mmap, in remove_inode_hugepages()
[all …]
/fs/bfs/
Dfile.c162 static void bfs_write_failed(struct address_space *mapping, loff_t to) in bfs_write_failed() argument
164 struct inode *inode = mapping->host; in bfs_write_failed()
170 static int bfs_write_begin(struct file *file, struct address_space *mapping, in bfs_write_begin() argument
176 ret = block_write_begin(mapping, pos, len, flags, pagep, in bfs_write_begin()
179 bfs_write_failed(mapping, pos + len); in bfs_write_begin()
184 static sector_t bfs_bmap(struct address_space *mapping, sector_t block) in bfs_bmap() argument
186 return generic_block_bmap(mapping, block, bfs_get_block); in bfs_bmap()
/fs/ceph/
Daddr.c71 struct address_space *mapping = page->mapping; in ceph_set_page_dirty() local
77 if (unlikely(!mapping)) in ceph_set_page_dirty()
82 mapping->host, page, page->index); in ceph_set_page_dirty()
87 inode = mapping->host; in ceph_set_page_dirty()
110 mapping->host, page, page->index, in ceph_set_page_dirty()
126 WARN_ON(!page->mapping); in ceph_set_page_dirty()
143 inode = page->mapping->host; in ceph_invalidatepage()
178 dout("%p releasepage %p idx %lu (%sdirty)\n", page->mapping->host, in ceph_releasepage()
440 static int ceph_readpages(struct file *file, struct address_space *mapping, in ceph_readpages() argument
451 rc = ceph_readpages_from_fscache(mapping->host, mapping, page_list, in ceph_readpages()
[all …]
/fs/nfs/
Dfile.c327 static int nfs_write_begin(struct file *file, struct address_space *mapping, in nfs_write_begin() argument
337 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_begin()
340 page = grab_cache_page_write_begin(mapping, index, flags); in nfs_write_begin()
360 static int nfs_write_end(struct file *file, struct address_space *mapping, in nfs_write_end() argument
369 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_end()
398 NFS_I(mapping->host)->write_io += copied; in nfs_write_end()
400 if (nfs_ctx_key_to_expire(ctx, mapping->host)) { in nfs_write_end()
401 status = nfs_wb_all(mapping->host); in nfs_write_end()
427 nfs_fscache_invalidate_page(page, page->mapping->host); in nfs_invalidate_page()
450 struct address_space *mapping = page_file_mapping(page); in nfs_check_dirty_writeback() local
[all …]
/fs/ext4/
Dinode.c1092 struct inode *inode = page->mapping->host; in ext4_block_write_begin()
1169 err = fscrypt_decrypt_page(page->mapping->host, page, in ext4_block_write_begin()
1175 static int ext4_write_begin(struct file *file, struct address_space *mapping, in ext4_write_begin() argument
1179 struct inode *inode = mapping->host; in ext4_write_begin()
1208 ret = ext4_try_to_write_inline_data(mapping, inode, pos, len, in ext4_write_begin()
1224 page = grab_cache_page_write_begin(mapping, index, flags); in ext4_write_begin()
1237 if (page->mapping != mapping) { in ext4_write_begin()
1324 struct address_space *mapping, in ext4_write_end() argument
1329 struct inode *inode = mapping->host; in ext4_write_end()
1346 copied = block_write_end(file, mapping, pos, in ext4_write_end()
[all …]
/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()
168 struct super_block *sb = page->mapping->host->i_sb; in logfs_invalidatepage()

123456789