Home
last modified time | relevance | path

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

12345678910

/fs/
Ddax.c342 static void dax_associate_entry(void *entry, struct address_space *mapping, in dax_associate_entry() argument
355 WARN_ON_ONCE(page->mapping); in dax_associate_entry()
356 page->mapping = mapping; in dax_associate_entry()
361 static void dax_disassociate_entry(void *entry, struct address_space *mapping, in dax_disassociate_entry() argument
373 WARN_ON_ONCE(page->mapping && page->mapping != mapping); in dax_disassociate_entry()
374 page->mapping = NULL; in dax_disassociate_entry()
408 struct address_space *mapping = READ_ONCE(page->mapping); in dax_lock_page() local
411 if (!mapping || !dax_mapping(mapping)) in dax_lock_page()
422 if (S_ISCHR(mapping->host->i_mode)) in dax_lock_page()
425 xas.xa = &mapping->i_pages; in dax_lock_page()
[all …]
Dbuffer.c321 struct inode *inode = page->mapping->host; in need_fsverity()
357 struct inode *inode = bh->b_page->mapping->host; in end_buffer_async_read_io()
585 int sync_mapping_buffers(struct address_space *mapping) in sync_mapping_buffers() argument
587 struct address_space *buffer_mapping = mapping->private_data; in sync_mapping_buffers()
589 if (buffer_mapping == NULL || list_empty(&mapping->private_list)) in sync_mapping_buffers()
593 &mapping->private_list); in sync_mapping_buffers()
616 struct address_space *mapping = inode->i_mapping; in mark_buffer_dirty_inode() local
617 struct address_space *buffer_mapping = bh->b_page->mapping; in mark_buffer_dirty_inode()
620 if (!mapping->private_data) { in mark_buffer_dirty_inode()
621 mapping->private_data = buffer_mapping; in mark_buffer_dirty_inode()
[all …]
/fs/gfs2/
Daops.c91 struct inode *inode = page->mapping->host; in gfs2_writepage()
120 struct inode * const inode = page->mapping->host; in gfs2_write_jdata_page()
153 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage()
178 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
202 static int gfs2_writepages(struct address_space *mapping, in gfs2_writepages() argument
205 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages()
215 ret = iomap_writepages(mapping, wbc, &wpc, &gfs2_writeback_ops); in gfs2_writepages()
232 static int gfs2_write_jdata_pagevec(struct address_space *mapping, in gfs2_write_jdata_pagevec() argument
238 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec()
255 if (unlikely(page->mapping != mapping)) { in gfs2_write_jdata_pagevec()
[all …]
Dmeta_io.h40 static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping) in gfs2_mapping2sbd() argument
42 struct inode *inode = mapping->host; in gfs2_mapping2sbd()
43 if (mapping->a_ops == &gfs2_meta_aops) in gfs2_mapping2sbd()
44 return (((struct gfs2_glock *)mapping) - 1)->gl_name.ln_sbd; in gfs2_mapping2sbd()
45 else if (mapping->a_ops == &gfs2_rgrp_aops) in gfs2_mapping2sbd()
46 return container_of(mapping, struct gfs2_sbd, sd_aspace); in gfs2_mapping2sbd()
/fs/afs/
Dwrite.c30 int afs_write_begin(struct file *file, struct address_space *mapping, in afs_write_begin() argument
49 ret = netfs_write_begin(file, mapping, pos, len, flags, &page, fsdata, in afs_write_begin()
108 int afs_write_end(struct file *file, struct address_space *mapping, in afs_write_end() argument
173 static void afs_kill_pages(struct address_space *mapping, in afs_kill_pages() argument
176 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_kill_pages()
188 pv.nr = find_get_pages_contig(mapping, start / PAGE_SIZE, in afs_kill_pages()
205 generic_error_remove_page(mapping, page); in afs_kill_pages()
219 struct address_space *mapping, in afs_redirty_pages() argument
222 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_redirty_pages()
234 pv.nr = find_get_pages_contig(mapping, start / PAGE_SIZE, in afs_redirty_pages()
[all …]
/fs/9p/
Dvfs_addr.c40 struct inode *inode = page->mapping->host; in v9fs_fid_readpage()
97 static int v9fs_vfs_readpages(struct file *filp, struct address_space *mapping, in v9fs_vfs_readpages() argument
103 inode = mapping->host; in v9fs_vfs_readpages()
106 ret = v9fs_readpages_from_fscache(inode, mapping, pages, &nr_pages); in v9fs_vfs_readpages()
110 ret = read_cache_pages(mapping, pages, v9fs_fid_readpage, in v9fs_vfs_readpages()
151 struct inode *inode = page->mapping->host; in v9fs_vfs_writepage_locked()
192 mapping_set_error(page->mapping, retval); in v9fs_vfs_writepage()
211 struct inode *inode = page->mapping->host; in v9fs_launder_page()
261 static int v9fs_write_begin(struct file *filp, struct address_space *mapping, in v9fs_write_begin() argument
269 struct inode *inode = mapping->host; in v9fs_write_begin()
[all …]
/fs/nilfs2/
Dpage.c48 struct address_space *mapping, in nilfs_grab_buffer() argument
57 page = grab_cache_page(mapping, index); in nilfs_grab_buffer()
163 m = page->mapping; in nilfs_page_bug()
334 page->mapping = NULL; in nilfs_copy_back_pages()
337 page->mapping = dmap; in nilfs_copy_back_pages()
358 void nilfs_clear_dirty_pages(struct address_space *mapping, bool silent) in nilfs_clear_dirty_pages() argument
366 while (pagevec_lookup_tag(&pvec, mapping, &index, in nilfs_clear_dirty_pages()
378 if (likely(page->mapping == mapping)) in nilfs_clear_dirty_pages()
395 struct inode *inode = page->mapping->host; in nilfs_clear_dirty_page()
447 void nilfs_mapping_init(struct address_space *mapping, struct inode *inode) in nilfs_mapping_init() argument
[all …]
Ddir.c96 struct address_space *mapping, in nilfs_commit_chunk() argument
99 struct inode *dir = mapping->host; in nilfs_commit_chunk()
106 copied = block_write_end(NULL, mapping, pos, len, len, page, NULL); in nilfs_commit_chunk()
118 struct inode *dir = page->mapping->host; in nilfs_check_page()
191 struct address_space *mapping = dir->i_mapping; in nilfs_get_page() local
192 struct page *page = read_mapping_page(mapping, n, NULL); in nilfs_get_page()
422 struct address_space *mapping = page->mapping; in nilfs_set_link() local
430 nilfs_commit_chunk(page, mapping, from, to); in nilfs_set_link()
521 nilfs_commit_chunk(page, page->mapping, from, to); in nilfs_add_link()
540 struct address_space *mapping = page->mapping; in nilfs_delete_entry() local
[all …]
/fs/ecryptfs/
Dmmap.c135 page_virt, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
157 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
184 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_readpage()
190 page->mapping->host); in ecryptfs_readpage()
207 page->mapping->host); in ecryptfs_readpage()
238 struct inode *inode = page->mapping->host; in fill_zeros_to_end_of_page()
266 struct address_space *mapping, in ecryptfs_write_begin() argument
275 page = grab_cache_page_write_begin(mapping, index, flags); in ecryptfs_write_begin()
283 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin()
287 page, index, 0, PAGE_SIZE, mapping->host); in ecryptfs_write_begin()
[all …]
/fs/hpfs/
Dfile.c176 static int hpfs_writepages(struct address_space *mapping, in hpfs_writepages() argument
179 return mpage_writepages(mapping, wbc, hpfs_get_block); in hpfs_writepages()
182 static void hpfs_write_failed(struct address_space *mapping, loff_t to) in hpfs_write_failed() argument
184 struct inode *inode = mapping->host; in hpfs_write_failed()
196 static int hpfs_write_begin(struct file *file, struct address_space *mapping, in hpfs_write_begin() argument
203 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in hpfs_write_begin()
205 &hpfs_i(mapping->host)->mmu_private); in hpfs_write_begin()
207 hpfs_write_failed(mapping, pos + len); in hpfs_write_begin()
212 static int hpfs_write_end(struct file *file, struct address_space *mapping, in hpfs_write_end() argument
216 struct inode *inode = mapping->host; in hpfs_write_end()
[all …]
/fs/exfat/
Dinode.c374 static int exfat_writepages(struct address_space *mapping, in exfat_writepages() argument
377 return mpage_writepages(mapping, wbc, exfat_get_block); in exfat_writepages()
380 static void exfat_write_failed(struct address_space *mapping, loff_t to) in exfat_write_failed() argument
382 struct inode *inode = mapping->host; in exfat_write_failed()
390 static int exfat_write_begin(struct file *file, struct address_space *mapping, in exfat_write_begin() argument
397 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in exfat_write_begin()
399 &EXFAT_I(mapping->host)->i_size_ondisk); in exfat_write_begin()
402 exfat_write_failed(mapping, pos+len); in exfat_write_begin()
407 static int exfat_write_end(struct file *file, struct address_space *mapping, in exfat_write_end() argument
411 struct inode *inode = mapping->host; in exfat_write_end()
[all …]
/fs/hfsplus/
Dbitmap.c24 struct address_space *mapping; in hfsplus_block_allocate() local
36 mapping = sbi->alloc_file->i_mapping; in hfsplus_block_allocate()
37 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL); in hfsplus_block_allocate()
81 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
132 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
168 struct address_space *mapping; in hfsplus_block_free() local
183 mapping = sbi->alloc_file->i_mapping; in hfsplus_block_free()
185 page = read_mapping_page(mapping, pnr, NULL); in hfsplus_block_free()
219 page = read_mapping_page(mapping, ++pnr, NULL); in hfsplus_block_free()
/fs/iomap/
Dfiemap.c97 iomap_bmap(struct address_space *mapping, sector_t bno, in iomap_bmap() argument
101 .inode = mapping->host, in iomap_bmap()
102 .pos = (loff_t)bno << mapping->host->i_blkbits, in iomap_bmap()
103 .len = i_blocksize(mapping->host), in iomap_bmap()
106 const unsigned int blkshift = mapping->host->i_blkbits - SECTOR_SHIFT; in iomap_bmap()
109 if (filemap_write_and_wait(mapping)) in iomap_bmap()
/fs/jfs/
Dinode.c290 static int jfs_writepages(struct address_space *mapping, in jfs_writepages() argument
293 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()
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
332 return generic_block_bmap(mapping, block, jfs_get_block); in jfs_bmap()
338 struct address_space *mapping = file->f_mapping; in jfs_direct_IO() local
[all …]
/fs/f2fs/
Ddata.c54 struct address_space *mapping = page->mapping; in __is_cp_guaranteed() local
58 if (!mapping) in __is_cp_guaranteed()
61 inode = mapping->host; in __is_cp_guaranteed()
79 struct address_space *mapping = page_file_mapping(page); in __read_io_type() local
81 if (mapping) { in __read_io_type()
82 struct inode *inode = mapping->host; in __read_io_type()
365 mapping_set_error(page->mapping, -EIO); in f2fs_write_end_io()
371 f2fs_bug_on(sbi, page->mapping == NODE_MAPPING(sbi) && in f2fs_write_end_io()
614 if (inode && inode == target->mapping->host) in __has_merged_page()
742 f2fs_set_bio_crypt_ctx(bio, fio->page->mapping->host, in f2fs_submit_page_bio()
[all …]
/fs/bfs/
Dfile.c163 static void bfs_write_failed(struct address_space *mapping, loff_t to) in bfs_write_failed() argument
165 struct inode *inode = mapping->host; in bfs_write_failed()
171 static int bfs_write_begin(struct file *file, struct address_space *mapping, in bfs_write_begin() argument
177 ret = block_write_begin(mapping, pos, len, flags, pagep, in bfs_write_begin()
180 bfs_write_failed(mapping, pos + len); in bfs_write_begin()
185 static sector_t bfs_bmap(struct address_space *mapping, sector_t block) in bfs_bmap() argument
187 return generic_block_bmap(mapping, block, bfs_get_block); in bfs_bmap()
/fs/affs/
Dfile.c383 static void affs_write_failed(struct address_space *mapping, loff_t to) in affs_write_failed() argument
385 struct inode *inode = mapping->host; in affs_write_failed()
397 struct address_space *mapping = file->f_mapping; in affs_direct_IO() local
398 struct inode *inode = mapping->host; in affs_direct_IO()
412 affs_write_failed(mapping, offset + count); in affs_direct_IO()
416 static int affs_write_begin(struct file *file, struct address_space *mapping, in affs_write_begin() argument
423 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in affs_write_begin()
425 &AFFS_I(mapping->host)->mmu_private); in affs_write_begin()
427 affs_write_failed(mapping, pos + len); in affs_write_begin()
432 static int affs_write_end(struct file *file, struct address_space *mapping, in affs_write_end() argument
[all …]
/fs/ceph/
Daddr.c81 struct address_space *mapping = page->mapping; in ceph_set_page_dirty() local
88 mapping->host, page, page->index); in ceph_set_page_dirty()
93 inode = mapping->host; in ceph_set_page_dirty()
116 mapping->host, page, page->index, in ceph_set_page_dirty()
146 inode = page->mapping->host; in ceph_invalidatepage()
169 dout("%p releasepage %p idx %lu (%sdirty)\n", page->mapping->host, in ceph_releasepage()
267 iov_iter_xarray(&iter, READ, &rreq->mapping->i_pages, subreq->start, len); in ceph_netfs_issue_op()
298 static void ceph_readahead_cleanup(struct address_space *mapping, void *priv) in ceph_readahead_cleanup() argument
300 struct inode *inode = mapping->host; in ceph_readahead_cleanup()
485 struct inode *inode = page->mapping->host; in writepage_nounlock()
[all …]
/fs/hugetlbfs/
Dinode.c337 struct address_space *mapping = file->f_mapping; in hugetlbfs_read_iter() local
338 struct inode *inode = mapping->host; in hugetlbfs_read_iter()
365 page = find_lock_page(mapping, index); in hugetlbfs_read_iter()
402 struct address_space *mapping, in hugetlbfs_write_begin() argument
409 static int hugetlbfs_write_end(struct file *file, struct address_space *mapping, in hugetlbfs_write_end() argument
487 struct address_space *mapping = &inode->i_data; in remove_inode_hugepages() local
501 if (!pagevec_lookup_range(&pvec, mapping, &next, end - 1)) in remove_inode_hugepages()
516 hash = hugetlb_fault_mutex_hash(mapping, index); in remove_inode_hugepages()
533 i_mmap_lock_write(mapping); in remove_inode_hugepages()
535 hugetlb_vmdelete_list(&mapping->i_mmap, in remove_inode_hugepages()
[all …]
/fs/ubifs/
Dfile.c105 struct inode *inode = page->mapping->host; in do_readpage()
217 static int write_begin_slow(struct address_space *mapping, in write_begin_slow() argument
221 struct inode *inode = mapping->host; in write_begin_slow()
247 page = grab_cache_page_write_begin(mapping, index, flags); in write_begin_slow()
421 static int ubifs_write_begin(struct file *file, struct address_space *mapping, in ubifs_write_begin() argument
425 struct inode *inode = mapping->host; in ubifs_write_begin()
440 page = grab_cache_page_write_begin(mapping, index, flags); in ubifs_write_begin()
496 return write_begin_slow(mapping, pos, len, pagep, flags); in ubifs_write_begin()
536 static int ubifs_write_end(struct file *file, struct address_space *mapping, in ubifs_write_end() argument
540 struct inode *inode = mapping->host; in ubifs_write_end()
[all …]
/fs/ext4/
Dtruncate.h14 struct address_space *mapping = inode->i_mapping; in ext4_truncate_failed_write() local
20 filemap_invalidate_lock(mapping); in ext4_truncate_failed_write()
21 truncate_inode_pages(mapping, inode->i_size); in ext4_truncate_failed_write()
23 filemap_invalidate_unlock(mapping); in ext4_truncate_failed_write()
/fs/ntfs3/
Dfile.c101 struct address_space *mapping = inode->i_mapping; in ntfs_extend_initialized_size() local
159 err = pagecache_write_begin(file, mapping, pos, len, 0, &page, in ntfs_extend_initialized_size()
167 err = pagecache_write_end(file, mapping, pos, len, len, page, in ntfs_extend_initialized_size()
177 balance_dirty_pages_ratelimited(mapping); in ntfs_extend_initialized_size()
198 struct address_space *mapping = inode->i_mapping; in ntfs_zero_range() local
215 page = find_or_create_page(mapping, idx, in ntfs_zero_range()
216 mapping_gfp_constraint(mapping, in ntfs_zero_range()
282 struct address_space *mapping = inode->i_mapping; in ntfs_sparse_cluster() local
299 page = idx == idx0 ? page0 : grab_cache_page(mapping, idx); in ntfs_sparse_cluster()
354 struct address_space *mapping = file->f_mapping; in ntfs_file_mmap() local
[all …]
/fs/nfs/
Dfile.c317 static int nfs_write_begin(struct file *file, struct address_space *mapping, in nfs_write_begin() argument
327 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_begin()
330 page = grab_cache_page_write_begin(mapping, index, flags); in nfs_write_begin()
350 static int nfs_write_end(struct file *file, struct address_space *mapping, in nfs_write_end() argument
359 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_end()
388 NFS_I(mapping->host)->write_io += copied; in nfs_write_end()
390 if (nfs_ctx_key_to_expire(ctx, mapping->host)) in nfs_write_end()
391 nfs_wb_all(mapping->host); in nfs_write_end()
414 nfs_fscache_invalidate_page(page, page->mapping->host); in nfs_invalidate_page()
437 struct address_space *mapping = page_file_mapping(page); in nfs_check_dirty_writeback() local
[all …]
/fs/omfs/
Dfile.c303 omfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in omfs_writepages() argument
305 return mpage_writepages(mapping, wbc, omfs_get_block); in omfs_writepages()
308 static void omfs_write_failed(struct address_space *mapping, loff_t to) in omfs_write_failed() argument
310 struct inode *inode = mapping->host; in omfs_write_failed()
318 static int omfs_write_begin(struct file *file, struct address_space *mapping, in omfs_write_begin() argument
324 ret = block_write_begin(mapping, pos, len, flags, pagep, in omfs_write_begin()
327 omfs_write_failed(mapping, pos + len); in omfs_write_begin()
332 static sector_t omfs_bmap(struct address_space *mapping, sector_t block) in omfs_bmap() argument
334 return generic_block_bmap(mapping, block, omfs_get_block); in omfs_bmap()
/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,
123 struct jffs2_inode_info *f = JFFS2_INODE_INFO(pg->mapping->host); in jffs2_readpage()
127 ret = jffs2_do_readpage_unlock(pg->mapping->host, pg); in jffs2_readpage()
132 static int jffs2_write_begin(struct file *filp, struct address_space *mapping, in jffs2_write_begin() argument
137 struct inode *inode = mapping->host; in jffs2_write_begin()
215 pg = grab_cache_page_write_begin(mapping, index, flags); in jffs2_write_begin()
245 static int jffs2_write_end(struct file *filp, struct address_space *mapping, in jffs2_write_end() argument
252 struct inode *inode = mapping->host; in jffs2_write_end()

12345678910