/fs/ |
D | dax.c | 342 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 …]
|
D | buffer.c | 324 fscrypt_inode_uses_fs_layer_crypto(bh->b_page->mapping->host)) { in end_buffer_async_read_io() 541 int sync_mapping_buffers(struct address_space *mapping) in sync_mapping_buffers() argument 543 struct address_space *buffer_mapping = mapping->private_data; in sync_mapping_buffers() 545 if (buffer_mapping == NULL || list_empty(&mapping->private_list)) in sync_mapping_buffers() 549 &mapping->private_list); in sync_mapping_buffers() 572 struct address_space *mapping = inode->i_mapping; in mark_buffer_dirty_inode() local 573 struct address_space *buffer_mapping = bh->b_page->mapping; in mark_buffer_dirty_inode() 576 if (!mapping->private_data) { in mark_buffer_dirty_inode() 577 mapping->private_data = buffer_mapping; in mark_buffer_dirty_inode() 579 BUG_ON(mapping->private_data != buffer_mapping); 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() 521 struct address_space *mapping = page->mapping; in __mpage_writepage() local 522 struct inode *inode = page->mapping->host; in __mpage_writepage() 698 ret = mapping->a_ops->writepage(page, wbc); in __mpage_writepage() [all …]
|
/fs/gfs2/ |
D | aops.c | 91 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 …]
|
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 93 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin() 162 int afs_write_end(struct file *file, struct address_space *mapping, in afs_write_end() argument 238 static void afs_kill_pages(struct address_space *mapping, in afs_kill_pages() argument 241 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_kill_pages() 256 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_kill_pages() 267 generic_error_remove_page(mapping, page); in afs_kill_pages() 281 struct address_space *mapping, in afs_redirty_pages() argument 284 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_redirty_pages() 299 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, 276 struct inode *inode = page->mapping->host; in afs_page_filler() 401 struct inode *inode = page->mapping->host; in afs_readpage() 442 static int afs_readpages_one(struct file *file, struct address_space *mapping, in afs_readpages_one() argument 445 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_readpages_one() 491 if (add_to_page_cache_lru(page, mapping, index, in afs_readpages_one() 492 readahead_gfp_mask(mapping))) { in afs_readpages_one() 543 static int afs_readpages(struct file *file, struct address_space *mapping, in afs_readpages() argument 551 key_serial(key), mapping->host->i_ino, nr_pages); in afs_readpages() 555 vnode = AFS_FS_I(mapping->host); in afs_readpages() [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/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() 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 …]
|
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/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/hpfs/ |
D | file.c | 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() 170 static int hpfs_write_end(struct file *file, struct address_space *mapping, in hpfs_write_end() argument 174 struct inode *inode = mapping->host; in hpfs_write_end() [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() 113 struct address_space *mapping, in erofs_read_raw_page() argument 119 struct inode *const inode = mapping->host; in erofs_read_raw_page() 258 bio = erofs_read_raw_page(NULL, page->mapping, in erofs_raw_access_readpage() 274 trace_erofs_readpages(rac->mapping->host, readahead_index(rac), in erofs_raw_access_readahead() 280 bio = erofs_read_raw_page(bio, rac->mapping, page, &last_block, in erofs_raw_access_readahead() 287 EROFS_I(rac->mapping->host)->nid); in erofs_raw_access_readahead() 300 static sector_t erofs_bmap(struct address_space *mapping, sector_t block) in erofs_bmap() argument [all …]
|
/fs/exfat/ |
D | inode.c | 374 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/ |
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/f2fs/ |
D | data.c | 55 struct address_space *mapping = page->mapping; in __is_cp_guaranteed() local 59 if (!mapping) in __is_cp_guaranteed() 62 inode = mapping->host; in __is_cp_guaranteed() 81 struct address_space *mapping = page_file_mapping(page); in __read_io_type() local 83 if (mapping) { in __read_io_type() 84 struct inode *inode = mapping->host; in __read_io_type() 345 mapping_set_error(page->mapping, -EIO); in f2fs_write_end_io() 351 f2fs_bug_on(sbi, page->mapping == NODE_MAPPING(sbi) && in f2fs_write_end_io() 597 if (inode && inode == target->mapping->host) in __has_merged_page() 692 f2fs_set_bio_crypt_ctx(bio, fio->page->mapping->host, in f2fs_submit_page_bio() [all …]
|
/fs/jfs/ |
D | inode.c | 290 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/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/hugetlbfs/ |
D | inode.c | 337 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() 396 struct address_space *mapping, in hugetlbfs_write_begin() argument 403 static int hugetlbfs_write_end(struct file *file, struct address_space *mapping, in hugetlbfs_write_end() argument 480 struct address_space *mapping = &inode->i_data; in remove_inode_hugepages() local 497 if (!pagevec_lookup_range(&pvec, mapping, &next, end - 1)) in remove_inode_hugepages() 505 hash = hugetlb_fault_mutex_hash(mapping, index); in remove_inode_hugepages() 529 i_mmap_lock_write(mapping); in remove_inode_hugepages() 531 hugetlb_vmdelete_list(&mapping->i_mmap, in remove_inode_hugepages() [all …]
|
/fs/affs/ |
D | file.c | 383 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/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/ceph/ |
D | addr.c | 77 struct address_space *mapping = page->mapping; in ceph_set_page_dirty() local 84 mapping->host, page, page->index); in ceph_set_page_dirty() 89 inode = mapping->host; in ceph_set_page_dirty() 112 mapping->host, page, page->index, in ceph_set_page_dirty() 141 inode = page->mapping->host; in ceph_invalidatepage() 167 dout("%p releasepage %p idx %lu (%sdirty)\n", page->mapping->host, in ceph_releasepage() 453 static int ceph_readpages(struct file *file, struct address_space *mapping, in ceph_readpages() argument 466 rc = ceph_readpages_from_fscache(mapping->host, mapping, page_list, in ceph_readpages() 593 struct inode *inode = page->mapping->host; in writepage_nounlock() 627 page->mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE); in writepage_nounlock() [all …]
|
/fs/nfs/ |
D | file.c | 320 static int nfs_write_begin(struct file *file, struct address_space *mapping, in nfs_write_begin() argument 330 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_begin() 333 page = grab_cache_page_write_begin(mapping, index, flags); in nfs_write_begin() 353 static int nfs_write_end(struct file *file, struct address_space *mapping, in nfs_write_end() argument 362 file, mapping->host->i_ino, len, (long long) pos); in nfs_write_end() 391 NFS_I(mapping->host)->write_io += copied; in nfs_write_end() 393 if (nfs_ctx_key_to_expire(ctx, mapping->host)) in nfs_write_end() 394 nfs_wb_all(mapping->host); in nfs_write_end() 417 nfs_fscache_invalidate_page(page, page->mapping->host); in nfs_invalidate_page() 440 struct address_space *mapping = page_file_mapping(page); in nfs_check_dirty_writeback() local [all …]
|
/fs/omfs/ |
D | file.c | 303 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/ |
D | file.c | 24 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()
|