/fs/ |
D | dax.c | 331 static void dax_associate_entry(void *entry, struct address_space *mapping, in dax_associate_entry() argument 344 WARN_ON_ONCE(page->mapping); in dax_associate_entry() 345 page->mapping = mapping; in dax_associate_entry() 350 static void dax_disassociate_entry(void *entry, struct address_space *mapping, in dax_disassociate_entry() argument 362 WARN_ON_ONCE(page->mapping && page->mapping != mapping); in dax_disassociate_entry() 363 page->mapping = NULL; in dax_disassociate_entry() 397 struct address_space *mapping = READ_ONCE(page->mapping); in dax_lock_page() local 400 if (!mapping || !dax_mapping(mapping)) in dax_lock_page() 411 if (S_ISCHR(mapping->host->i_mode)) in dax_lock_page() 414 xas.xa = &mapping->i_pages; in dax_lock_page() [all …]
|
D | buffer.c | 517 int sync_mapping_buffers(struct address_space *mapping) in sync_mapping_buffers() argument 519 struct address_space *buffer_mapping = mapping->private_data; in sync_mapping_buffers() 521 if (buffer_mapping == NULL || list_empty(&mapping->private_list)) in sync_mapping_buffers() 525 &mapping->private_list); in sync_mapping_buffers() 548 struct address_space *mapping = inode->i_mapping; in mark_buffer_dirty_inode() local 549 struct address_space *buffer_mapping = bh->b_page->mapping; in mark_buffer_dirty_inode() 552 if (!mapping->private_data) { in mark_buffer_dirty_inode() 553 mapping->private_data = buffer_mapping; in mark_buffer_dirty_inode() 555 BUG_ON(mapping->private_data != buffer_mapping); in mark_buffer_dirty_inode() 560 &mapping->private_list); in mark_buffer_dirty_inode() [all …]
|
D | mpage.c | 65 trace_android_fs_dataread_end(first_page->mapping->host, in mpage_end_io() 89 first_page->mapping->host); in mpage_bio_submit() 91 first_page->mapping->host, in mpage_bio_submit() 142 struct inode *inode = page->mapping->host; in map_buffer_to_page() 195 struct inode *inode = page->mapping->host; in do_mpage_readpage() 216 gfp = readahead_gfp_mask(page->mapping); in do_mpage_readpage() 219 gfp = mapping_gfp_constraint(page->mapping, GFP_KERNEL); in do_mpage_readpage() 421 mpage_readpages(struct address_space *mapping, struct list_head *pages, in mpage_readpages() argument 435 if (!add_to_page_cache_lru(page, mapping, in mpage_readpages() 437 readahead_gfp_mask(mapping))) { in mpage_readpages() [all …]
|
/fs/gfs2/ |
D | aops.c | 91 struct inode *inode = page->mapping->host; in gfs2_writepage() 105 page->mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE); in gfs2_writepage() 124 struct inode * const inode = page->mapping->host; in gfs2_write_full_page() 157 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage() 183 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage() 209 static int gfs2_writepages(struct address_space *mapping, in gfs2_writepages() argument 212 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages() 213 int ret = mpage_writepages(mapping, wbc, gfs2_get_block_noalloc); in gfs2_writepages() 238 static int gfs2_write_jdata_pagevec(struct address_space *mapping, in gfs2_write_jdata_pagevec() argument 244 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec() [all …]
|
D | meta_io.h | 40 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/ |
D | write.c | 77 int afs_write_begin(struct file *file, struct address_space *mapping, in afs_write_begin() argument 98 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin() 181 int afs_write_end(struct file *file, struct address_space *mapping, in afs_write_end() argument 232 static void afs_kill_pages(struct address_space *mapping, in afs_kill_pages() argument 235 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_kill_pages() 250 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_kill_pages() 261 generic_error_remove_page(mapping, page); in afs_kill_pages() 275 struct address_space *mapping, in afs_redirty_pages() argument 278 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_redirty_pages() 293 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_redirty_pages() [all …]
|
D | file.c | 25 static int afs_readpages(struct file *filp, struct address_space *mapping, 274 struct inode *inode = page->mapping->host; in afs_page_filler() 399 struct inode *inode = page->mapping->host; in afs_readpage() 440 static int afs_readpages_one(struct file *file, struct address_space *mapping, in afs_readpages_one() argument 443 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_readpages_one() 489 if (add_to_page_cache_lru(page, mapping, index, in afs_readpages_one() 490 readahead_gfp_mask(mapping))) { in afs_readpages_one() 541 static int afs_readpages(struct file *file, struct address_space *mapping, in afs_readpages() argument 549 key_serial(key), mapping->host->i_ino, nr_pages); in afs_readpages() 553 vnode = AFS_FS_I(mapping->host); in afs_readpages() [all …]
|
/fs/hpfs/ |
D | file.c | 128 static int hpfs_readpages(struct file *file, struct address_space *mapping, in hpfs_readpages() argument 131 return mpage_readpages(mapping, pages, nr_pages, hpfs_get_block); in hpfs_readpages() 134 static int hpfs_writepages(struct address_space *mapping, in hpfs_writepages() argument 137 return mpage_writepages(mapping, wbc, hpfs_get_block); in hpfs_writepages() 140 static void hpfs_write_failed(struct address_space *mapping, loff_t to) in hpfs_write_failed() argument 142 struct inode *inode = mapping->host; in hpfs_write_failed() 154 static int hpfs_write_begin(struct file *file, struct address_space *mapping, in hpfs_write_begin() argument 161 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in hpfs_write_begin() 163 &hpfs_i(mapping->host)->mmu_private); in hpfs_write_begin() 165 hpfs_write_failed(mapping, pos + len); in hpfs_write_begin() [all …]
|
/fs/9p/ |
D | vfs_addr.c | 41 struct inode *inode = page->mapping->host; in v9fs_fid_readpage() 98 static int v9fs_vfs_readpages(struct file *filp, struct address_space *mapping, in v9fs_vfs_readpages() argument 104 inode = mapping->host; in v9fs_vfs_readpages() 107 ret = v9fs_readpages_from_fscache(inode, mapping, pages, &nr_pages); in v9fs_vfs_readpages() 111 ret = read_cache_pages(mapping, pages, v9fs_fid_readpage, in v9fs_vfs_readpages() 150 struct inode *inode = page->mapping->host; in v9fs_vfs_writepage_locked() 191 mapping_set_error(page->mapping, retval); in v9fs_vfs_writepage() 208 struct inode *inode = page->mapping->host; in v9fs_launder_page() 255 static int v9fs_write_begin(struct file *filp, struct address_space *mapping, in v9fs_write_begin() argument 263 struct inode *inode = mapping->host; in v9fs_write_begin() [all …]
|
/fs/ecryptfs/ |
D | mmap.c | 134 page_virt, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header() 156 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header() 183 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_readpage() 189 page->mapping->host); in ecryptfs_readpage() 206 page->mapping->host); in ecryptfs_readpage() 237 struct inode *inode = page->mapping->host; in fill_zeros_to_end_of_page() 265 struct address_space *mapping, in ecryptfs_write_begin() argument 274 page = grab_cache_page_write_begin(mapping, index, flags); in ecryptfs_write_begin() 282 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin() 286 page, index, 0, PAGE_SIZE, mapping->host); in ecryptfs_write_begin() [all …]
|
/fs/nilfs2/ |
D | page.c | 48 struct address_space *mapping, in nilfs_grab_buffer() argument 57 page = grab_cache_page(mapping, index); in nilfs_grab_buffer() 164 m = page->mapping; in nilfs_page_bug() 335 page->mapping = NULL; in nilfs_copy_back_pages() 338 page->mapping = dmap; in nilfs_copy_back_pages() 359 void nilfs_clear_dirty_pages(struct address_space *mapping, bool silent) in nilfs_clear_dirty_pages() argument 367 while (pagevec_lookup_tag(&pvec, mapping, &index, in nilfs_clear_dirty_pages() 388 struct inode *inode = page->mapping->host; in nilfs_clear_dirty_page() 441 void nilfs_mapping_init(struct address_space *mapping, struct inode *inode) in nilfs_mapping_init() argument 443 mapping->host = inode; in nilfs_mapping_init() [all …]
|
D | dir.c | 96 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/erofs/ |
D | data.c | 37 struct address_space *const mapping = sb->s_bdev->bd_inode->i_mapping; in erofs_get_meta_page() local 40 page = read_cache_page_gfp(mapping, blkaddr, in erofs_get_meta_page() 41 mapping_gfp_constraint(mapping, ~__GFP_FS)); in erofs_get_meta_page() 128 struct address_space *mapping, in erofs_read_raw_page() argument 134 struct inode *const inode = mapping->host; in erofs_read_raw_page() 273 bio = erofs_read_raw_page(NULL, page->mapping, in erofs_raw_access_readpage() 284 struct address_space *mapping, in erofs_raw_access_readpages() argument 290 gfp_t gfp = readahead_gfp_mask(mapping); in erofs_raw_access_readpages() 293 trace_erofs_readpages(mapping->host, page, nr_pages, true); in erofs_raw_access_readpages() 301 if (!add_to_page_cache_lru(page, mapping, page->index, gfp)) { in erofs_raw_access_readpages() [all …]
|
D | zdata.c | 216 struct address_space *const mapping = MNGD_MAPPING(sbi); in erofs_try_to_free_all_cached_pages() local 234 if (page->mapping != mapping) in erofs_try_to_free_all_cached_pages() 248 int erofs_try_to_free_cached_page(struct address_space *mapping, in erofs_try_to_free_cached_page() argument 551 page->mapping = Z_EROFS_MAPPING_STAGING; in __stagingpage_alloc() 733 DBG_BUGON(!page->mapping); in z_erofs_vle_read_endio() 736 sbi = EROFS_SB(page->mapping->host->i_sb); in z_erofs_vle_read_endio() 813 DBG_BUGON(!page->mapping); in z_erofs_decompress_pcluster() 849 DBG_BUGON(!page->mapping); in z_erofs_decompress_pcluster() 926 DBG_BUGON(!page->mapping); in z_erofs_decompress_pcluster() 1002 struct address_space *mapping; in pickup_page_for_submission() local [all …]
|
/fs/f2fs/ |
D | data.c | 38 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() 60 struct address_space *mapping = page_file_mapping(page); in __read_io_type() local 62 if (mapping) { in __read_io_type() 63 struct inode *inode = mapping->host; in __read_io_type() 219 mapping_set_error(page->mapping, -EIO); in f2fs_write_end_io() 224 f2fs_bug_on(sbi, page->mapping == NODE_MAPPING(sbi) && in f2fs_write_end_io() 430 if (inode && inode == target->mapping->host) in __has_merged_page() 526 f2fs_set_bio_crypt_ctx(bio, fio->page->mapping->host, in f2fs_submit_page_bio() [all …]
|
/fs/jfs/ |
D | inode.c | 288 static int jfs_writepages(struct address_space *mapping, in jfs_writepages() argument 291 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages() 299 static int jfs_readpages(struct file *file, struct address_space *mapping, in jfs_readpages() argument 302 return mpage_readpages(mapping, pages, nr_pages, jfs_get_block); in jfs_readpages() 305 static void jfs_write_failed(struct address_space *mapping, loff_t to) in jfs_write_failed() argument 307 struct inode *inode = mapping->host; in jfs_write_failed() 315 static int jfs_write_begin(struct file *file, struct address_space *mapping, in jfs_write_begin() argument 321 ret = nobh_write_begin(mapping, pos, len, flags, pagep, fsdata, in jfs_write_begin() 324 jfs_write_failed(mapping, pos + len); in jfs_write_begin() 329 static sector_t jfs_bmap(struct address_space *mapping, sector_t block) in jfs_bmap() argument [all …]
|
/fs/hfsplus/ |
D | bitmap.c | 24 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/hugetlbfs/ |
D | inode.c | 274 struct address_space *mapping = file->f_mapping; in hugetlbfs_read_iter() local 275 struct inode *inode = mapping->host; in hugetlbfs_read_iter() 302 page = find_lock_page(mapping, index); in hugetlbfs_read_iter() 333 struct address_space *mapping, in hugetlbfs_write_begin() argument 340 static int hugetlbfs_write_end(struct file *file, struct address_space *mapping, in hugetlbfs_write_end() argument 418 struct address_space *mapping = &inode->i_data; in remove_inode_hugepages() local 435 if (!pagevec_lookup_range(&pvec, mapping, &next, end - 1)) in remove_inode_hugepages() 443 hash = hugetlb_fault_mutex_hash(h, mapping, index, 0); in remove_inode_hugepages() 458 i_mmap_lock_write(mapping); in remove_inode_hugepages() 459 hugetlb_vmdelete_list(&mapping->i_mmap, in remove_inode_hugepages() [all …]
|
/fs/omfs/ |
D | file.c | 292 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/bfs/ |
D | file.c | 163 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/nfs/ |
D | file.c | 321 static int nfs_write_begin(struct file *file, struct address_space *mapping, in nfs_write_begin() argument 331 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_begin() 334 page = grab_cache_page_write_begin(mapping, index, flags); in nfs_write_begin() 354 static int nfs_write_end(struct file *file, struct address_space *mapping, in nfs_write_end() argument 363 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_end() 392 NFS_I(mapping->host)->write_io += copied; in nfs_write_end() 394 if (nfs_ctx_key_to_expire(ctx, mapping->host)) { in nfs_write_end() 395 status = nfs_wb_all(mapping->host); in nfs_write_end() 421 nfs_fscache_invalidate_page(page, page->mapping->host); in nfs_invalidate_page() 444 struct address_space *mapping = page_file_mapping(page); in nfs_check_dirty_writeback() local [all …]
|
/fs/ceph/ |
D | addr.c | 75 struct address_space *mapping = page->mapping; in ceph_set_page_dirty() local 81 if (unlikely(!mapping)) in ceph_set_page_dirty() 86 mapping->host, page, page->index); in ceph_set_page_dirty() 91 inode = mapping->host; in ceph_set_page_dirty() 114 mapping->host, page, page->index, in ceph_set_page_dirty() 130 WARN_ON(!page->mapping); in ceph_set_page_dirty() 147 inode = page->mapping->host; in ceph_invalidatepage() 175 dout("%p releasepage %p idx %lu (%sdirty)\n", page->mapping->host, in ceph_releasepage() 441 static int ceph_readpages(struct file *file, struct address_space *mapping, in ceph_readpages() argument 454 rc = ceph_readpages_from_fscache(mapping->host, mapping, page_list, in ceph_readpages() [all …]
|
/fs/ubifs/ |
D | file.c | 105 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/affs/ |
D | file.c | 382 static void affs_write_failed(struct address_space *mapping, loff_t to) in affs_write_failed() argument 384 struct inode *inode = mapping->host; in affs_write_failed() 396 struct address_space *mapping = file->f_mapping; in affs_direct_IO() local 397 struct inode *inode = mapping->host; in affs_direct_IO() 411 affs_write_failed(mapping, offset + count); in affs_direct_IO() 415 static int affs_write_begin(struct file *file, struct address_space *mapping, in affs_write_begin() argument 422 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in affs_write_begin() 424 &AFFS_I(mapping->host)->mmu_private); in affs_write_begin() 426 affs_write_failed(mapping, pos + len); in affs_write_begin() 431 static sector_t _affs_bmap(struct address_space *mapping, sector_t block) in _affs_bmap() argument [all …]
|
/fs/xfs/ |
D | xfs_aops.c | 808 trace_xfs_invalidatepage(page->mapping->host, page, offset, length); in xfs_vm_invalidatepage() 827 struct inode *inode = page->mapping->host; in xfs_aops_discard_page() 967 mapping_set_error(page->mapping, error); in xfs_writepage_map() 985 struct inode *inode = page->mapping->host; in xfs_do_writepage() 1103 struct address_space *mapping, in xfs_vm_writepages() argument 1109 xfs_iflags_clear(XFS_I(mapping->host), XFS_ITRUNCATED); in xfs_vm_writepages() 1110 ret = write_cache_pages(mapping, wbc, xfs_do_writepage, &wpc); in xfs_vm_writepages() 1118 struct address_space *mapping, in xfs_dax_writepages() argument 1121 xfs_iflags_clear(XFS_I(mapping->host), XFS_ITRUNCATED); in xfs_dax_writepages() 1122 return dax_writeback_mapping_range(mapping, in xfs_dax_writepages() [all …]
|