/fs/xfs/linux-2.6/ |
D | xfs_fs_subr.c | 38 struct address_space *mapping = VFS_I(ip)->i_mapping; in xfs_tosspages() local 40 if (mapping->nrpages) in xfs_tosspages() 41 truncate_inode_pages(mapping, first); in xfs_tosspages() 51 struct address_space *mapping = VFS_I(ip)->i_mapping; in xfs_flushinval_pages() local 54 if (mapping->nrpages) { in xfs_flushinval_pages() 56 ret = filemap_write_and_wait(mapping); in xfs_flushinval_pages() 58 truncate_inode_pages(mapping, first); in xfs_flushinval_pages() 71 struct address_space *mapping = VFS_I(ip)->i_mapping; in xfs_flush_pages() local 75 if (mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) { in xfs_flush_pages() 77 ret = filemap_fdatawrite(mapping); in xfs_flush_pages() [all …]
|
/fs/gfs2/ |
D | ops_address.c | 100 struct inode *inode = page->mapping->host; in gfs2_writepage_common() 114 page->mapping->a_ops->invalidatepage(page, 0); in gfs2_writepage_common() 157 struct inode *inode = page->mapping->host; in gfs2_ordered_writepage() 186 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage() 211 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage() 246 static int gfs2_writeback_writepages(struct address_space *mapping, in gfs2_writeback_writepages() argument 249 return mpage_writepages(mapping, wbc, gfs2_get_block_noalloc); in gfs2_writeback_writepages() 263 static int gfs2_write_jdata_pagevec(struct address_space *mapping, in gfs2_write_jdata_pagevec() argument 268 struct inode *inode = mapping->host; in gfs2_write_jdata_pagevec() 274 struct backing_dev_info *bdi = mapping->backing_dev_info; in gfs2_write_jdata_pagevec() [all …]
|
D | meta_io.c | 102 struct address_space *mapping = gl->gl_aspace->i_mapping; in gfs2_meta_inval() local 107 truncate_inode_pages(mapping, 0); in gfs2_meta_inval() 110 gfs2_assert_withdraw(sdp, !mapping->nrpages); in gfs2_meta_inval() 121 struct address_space *mapping = gl->gl_aspace->i_mapping; in gfs2_meta_sync() local 124 filemap_fdatawrite(mapping); in gfs2_meta_sync() 125 error = filemap_fdatawait(mapping); in gfs2_meta_sync() 142 struct address_space *mapping = gl->gl_aspace->i_mapping; in gfs2_getbuf() local 156 page = grab_cache_page(mapping, index); in gfs2_getbuf() 162 page = find_lock_page(mapping, index); in gfs2_getbuf() 306 struct gfs2_sbd *sdp = GFS2_SB(bh->b_page->mapping->host); in gfs2_remove_from_journal()
|
/fs/ |
D | buffer.c | 412 struct address_space *mapping = bdev->bd_inode->i_mapping; in invalidate_bdev() local 414 if (mapping->nrpages == 0) in invalidate_bdev() 418 invalidate_mapping_pages(mapping, 0, -1); in invalidate_bdev() 528 set_bit(AS_EIO, &page->mapping->flags); in end_buffer_async_write() 706 int sync_mapping_buffers(struct address_space *mapping) in sync_mapping_buffers() argument 708 struct address_space *buffer_mapping = mapping->assoc_mapping; in sync_mapping_buffers() 710 if (buffer_mapping == NULL || list_empty(&mapping->private_list)) in sync_mapping_buffers() 714 &mapping->private_list); in sync_mapping_buffers() 737 struct address_space *mapping = inode->i_mapping; in mark_buffer_dirty_inode() local 738 struct address_space *buffer_mapping = bh->b_page->mapping; in mark_buffer_dirty_inode() [all …]
|
D | sync.c | 94 struct address_space *mapping; in vfs_fsync() local 103 mapping = file->f_mapping; in vfs_fsync() 106 mapping = dentry->d_inode->i_mapping; in vfs_fsync() 115 ret = filemap_fdatawrite(mapping); in vfs_fsync() 121 mutex_lock(&mapping->host->i_mutex); in vfs_fsync() 125 mutex_unlock(&mapping->host->i_mutex); in vfs_fsync() 126 err = filemap_fdatawait(mapping); in vfs_fsync() 295 int do_sync_mapping_range(struct address_space *mapping, loff_t offset, in do_sync_mapping_range() argument 300 if (!mapping) { in do_sync_mapping_range() 307 ret = wait_on_page_writeback_range(mapping, in do_sync_mapping_range() [all …]
|
D | fs-writeback.c | 272 struct address_space *mapping = inode->i_mapping; in __sync_single_inode() local 286 ret = do_writepages(mapping, wbc); in __sync_single_inode() 296 int err = filemap_fdatawait(mapping); in __sync_single_inode() 306 mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) { in __sync_single_inode() 454 struct address_space *mapping = inode->i_mapping; in generic_sync_sb_inodes() local 455 struct backing_dev_info *bdi = mapping->backing_dev_info; in generic_sync_sb_inodes() 539 struct address_space *mapping; in generic_sync_sb_inodes() local 543 mapping = inode->i_mapping; in generic_sync_sb_inodes() 544 if (mapping->nrpages == 0) in generic_sync_sb_inodes() 559 filemap_fdatawait(mapping); in generic_sync_sb_inodes() [all …]
|
D | splice.c | 44 struct address_space *mapping; in page_cache_pipe_buf_steal() local 48 mapping = page_mapping(page); in page_cache_pipe_buf_steal() 49 if (mapping) { in page_cache_pipe_buf_steal() 69 if (remove_mapping(mapping, page)) { in page_cache_pipe_buf_steal() 108 if (!page->mapping) { in page_cache_pipe_buf_confirm() 274 struct address_space *mapping = in->f_mapping; in __generic_file_splice_read() local 298 spd.nr_pages = find_get_pages_contig(mapping, index, nr_pages, pages); in __generic_file_splice_read() 306 page_cache_sync_readahead(mapping, &in->f_ra, in, in __generic_file_splice_read() 315 page = find_get_page(mapping, index); in __generic_file_splice_read() 320 page = page_cache_alloc_cold(mapping); in __generic_file_splice_read() [all …]
|
D | mpage.c | 77 if (page->mapping) in mpage_end_io_write() 78 set_bit(AS_EIO, &page->mapping->flags); in mpage_end_io_write() 129 struct inode *inode = page->mapping->host; in map_buffer_to_page() 173 struct inode *inode = page->mapping->host; in do_mpage_readpage() 374 mpage_readpages(struct address_space *mapping, struct list_head *pages, in mpage_readpages() argument 389 if (!add_to_page_cache_lru(page, mapping, in mpage_readpages() 447 struct address_space *mapping = page->mapping; in __mpage_writepage() local 448 struct inode *inode = page->mapping->host; in __mpage_writepage() 638 ret = mapping->a_ops->writepage(page, wbc); in __mpage_writepage() 646 mapping_set_error(mapping, ret); in __mpage_writepage() [all …]
|
/fs/ecryptfs/ |
D | mmap.c | 50 struct address_space *mapping; in ecryptfs_get_locked_page() local 55 mapping = inode->i_mapping; in ecryptfs_get_locked_page() 56 page = read_mapping_page(mapping, index, (void *)file); in ecryptfs_get_locked_page() 150 page_virt, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header() 169 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header() 206 page->mapping->host); in ecryptfs_readpage() 223 page->mapping->host); in ecryptfs_readpage() 254 struct inode *inode = page->mapping->host; in fill_zeros_to_end_of_page() 282 struct address_space *mapping, in ecryptfs_write_begin() argument 291 page = grab_cache_page_write_begin(mapping, index, flags); in ecryptfs_write_begin() [all …]
|
/fs/sysv/ |
D | dir.c | 43 struct address_space *mapping = page->mapping; in dir_commit_chunk() local 44 struct inode *dir = mapping->host; in dir_commit_chunk() 47 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk() 61 struct address_space *mapping = dir->i_mapping; in dir_get_page() local 62 struct page *page = read_mapping_page(mapping, n, NULL); in dir_get_page() 224 err = __sysv_write_begin(NULL, page->mapping, pos, SYSV_DIRSIZE, in sysv_add_link() 245 struct address_space *mapping = page->mapping; in sysv_delete_entry() local 246 struct inode *inode = (struct inode*)mapping->host; in sysv_delete_entry() 252 err = __sysv_write_begin(NULL, mapping, pos, SYSV_DIRSIZE, in sysv_delete_entry() 265 struct address_space *mapping = inode->i_mapping; in sysv_make_empty() local [all …]
|
/fs/afs/ |
D | write.c | 120 int afs_write_begin(struct file *file, struct address_space *mapping, in afs_write_begin() argument 147 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin() 246 int afs_write_end(struct file *file, struct address_space *mapping, in afs_write_end() argument 441 struct backing_dev_info *bdi = page->mapping->backing_dev_info; in afs_writepage() 468 static int afs_writepages_region(struct address_space *mapping, in afs_writepages_region() argument 472 struct backing_dev_info *bdi = mapping->backing_dev_info; in afs_writepages_region() 480 n = find_get_pages_tag(mapping, &index, PAGECACHE_TAG_DIRTY, in afs_writepages_region() 501 if (page->mapping != mapping) { in afs_writepages_region() 548 int afs_writepages(struct address_space *mapping, in afs_writepages() argument 551 struct backing_dev_info *bdi = mapping->backing_dev_info; in afs_writepages() [all …]
|
/fs/minix/ |
D | dir.c | 55 struct address_space *mapping = page->mapping; in dir_commit_chunk() local 56 struct inode *dir = mapping->host; in dir_commit_chunk() 58 block_write_end(NULL, mapping, pos, len, len, page, NULL); in dir_commit_chunk() 73 struct address_space *mapping = dir->i_mapping; in dir_get_page() local 74 struct page *page = read_mapping_page(mapping, n, NULL); in dir_get_page() 284 err = __minix_write_begin(NULL, page->mapping, pos, sbi->s_dirsize, in minix_add_link() 310 struct address_space *mapping = page->mapping; in minix_delete_entry() local 311 struct inode *inode = (struct inode*)mapping->host; in minix_delete_entry() 318 err = __minix_write_begin(NULL, mapping, pos, len, in minix_delete_entry() 334 struct address_space *mapping = inode->i_mapping; in minix_make_empty() local [all …]
|
/fs/hfsplus/ |
D | bitmap.c | 21 struct address_space *mapping; in hfsplus_block_allocate() local 33 mapping = HFSPLUS_SB(sb).alloc_file->i_mapping; in hfsplus_block_allocate() 34 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL); in hfsplus_block_allocate() 78 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate() 129 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate() 164 struct address_space *mapping; in hfsplus_block_free() local 179 mapping = HFSPLUS_SB(sb).alloc_file->i_mapping; in hfsplus_block_free() 181 page = read_mapping_page(mapping, pnr, NULL); in hfsplus_block_free() 213 page = read_mapping_page(mapping, ++pnr, NULL); in hfsplus_block_free()
|
/fs/nfs/ |
D | write.c | 123 struct inode *inode = page->mapping->host; in nfs_page_find_request() 135 struct inode *inode = page->mapping->host; in nfs_grow_file() 157 nfs_zap_mapping(page->mapping->host, page->mapping); in nfs_set_pageerror() 198 struct inode *inode = page->mapping->host; in nfs_set_page_writeback() 210 struct inode *inode = page->mapping->host; in nfs_end_page_writeback() 225 struct inode *inode = page->mapping->host; in nfs_page_async_flush() 268 struct inode *inode = page->mapping->host; in nfs_do_writepage() 285 nfs_pageio_init_write(&pgio, page->mapping->host, wb_priority(wbc)); in nfs_writepage_locked() 313 int nfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in nfs_writepages() argument 315 struct inode *inode = mapping->host; in nfs_writepages() [all …]
|
/fs/ocfs2/ |
D | aops.c | 275 struct inode *inode = page->mapping->host; in ocfs2_readpage() 338 static int ocfs2_readpages(struct file *filp, struct address_space *mapping, in ocfs2_readpages() argument 342 struct inode *inode = mapping->host; in ocfs2_readpages() 376 err = mpage_readpages(mapping, pages, nr_pages, ocfs2_get_block); in ocfs2_readpages() 490 static sector_t ocfs2_bmap(struct address_space *mapping, sector_t block) in ocfs2_bmap() argument 495 struct inode *inode = mapping->host; in ocfs2_bmap() 656 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_invalidatepage() 663 journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; in ocfs2_releasepage() 1149 static int ocfs2_grab_pages_for_write(struct address_space *mapping, in ocfs2_grab_pages_for_write() argument 1156 struct inode *inode = mapping->host; in ocfs2_grab_pages_for_write() [all …]
|
/fs/ext2/ |
D | dir.c | 86 struct address_space *mapping = page->mapping; in ext2_commit_chunk() local 87 struct inode *dir = mapping->host; in ext2_commit_chunk() 91 block_write_end(NULL, mapping, pos, len, len, page, NULL); in ext2_commit_chunk() 111 struct inode *dir = page->mapping->host; in ext2_check_page() 196 struct address_space *mapping = dir->i_mapping; in ext2_get_page() local 197 struct page *page = read_mapping_page(mapping, n, NULL); in ext2_get_page() 461 err = __ext2_write_begin(NULL, page->mapping, pos, len, in ext2_set_link() 544 err = __ext2_write_begin(NULL, page->mapping, pos, rec_len, 0, in ext2_add_link() 578 struct address_space *mapping = page->mapping; in ext2_delete_entry() local 579 struct inode *inode = mapping->host; in ext2_delete_entry() [all …]
|
/fs/freevxfs/ |
D | vxfs_subr.c | 70 vxfs_get_page(struct address_space *mapping, u_long n) in vxfs_get_page() argument 74 pp = read_mapping_page(mapping, n, NULL); in vxfs_get_page() 182 vxfs_bmap(struct address_space *mapping, sector_t block) in vxfs_bmap() argument 184 return generic_block_bmap(mapping, block, vxfs_getblk); in vxfs_bmap()
|
/fs/cifs/ |
D | file.c | 1156 struct address_space *mapping = page->mapping; in cifs_partialpagewrite() local 1166 if (!mapping || !mapping->host) in cifs_partialpagewrite() 1169 inode = page->mapping->host; in cifs_partialpagewrite() 1183 if (offset > mapping->host->i_size) { in cifs_partialpagewrite() 1189 if (mapping->host->i_size - offset < (loff_t)to) in cifs_partialpagewrite() 1190 to = (unsigned)(mapping->host->i_size - offset); in cifs_partialpagewrite() 1192 open_file = find_writable_file(CIFS_I(mapping->host)); in cifs_partialpagewrite() 1212 static int cifs_writepages(struct address_space *mapping, in cifs_writepages() argument 1215 struct backing_dev_info *bdi = mapping->backing_dev_info; in cifs_writepages() 1236 cifs_sb = CIFS_SB(mapping->host->i_sb); in cifs_writepages() [all …]
|
/fs/ext4/ |
D | inode.c | 1344 static int ext4_write_begin(struct file *file, struct address_space *mapping, in ext4_write_begin() argument 1348 struct inode *inode = mapping->host; in ext4_write_begin() 1375 page = grab_cache_page_write_begin(mapping, index, flags); in ext4_write_begin() 1383 ret = block_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in ext4_write_begin() 1427 struct address_space *mapping, in ext4_ordered_write_end() argument 1432 struct inode *inode = mapping->host; in ext4_ordered_write_end() 1454 ret2 = generic_write_end(file, mapping, pos, len, copied, in ext4_ordered_write_end() 1468 struct address_space *mapping, in ext4_writeback_write_end() argument 1473 struct inode *inode = mapping->host; in ext4_writeback_write_end() 1491 ret2 = generic_write_end(file, mapping, pos, len, copied, in ext4_writeback_write_end() [all …]
|
/fs/ufs/ |
D | dir.c | 45 struct address_space *mapping = page->mapping; in ufs_commit_chunk() local 46 struct inode *dir = mapping->host; in ufs_commit_chunk() 50 block_write_end(NULL, mapping, pos, len, len, page, NULL); in ufs_commit_chunk() 98 err = __ufs_write_begin(NULL, page->mapping, pos, len, in ufs_set_link() 114 struct inode *dir = page->mapping->host; in ufs_check_page() 193 struct address_space *mapping = dir->i_mapping; in ufs_get_page() local 194 struct page *page = read_mapping_page(mapping, n, NULL); in ufs_get_page() 384 err = __ufs_write_begin(NULL, page->mapping, pos, rec_len, in ufs_add_link() 521 struct address_space *mapping = page->mapping; in ufs_delete_entry() local 552 err = __ufs_write_begin(NULL, mapping, pos, to - from, in ufs_delete_entry() [all …]
|
/fs/jffs2/ |
D | file.c | 22 static int jffs2_write_end(struct file *filp, struct address_space *mapping, 25 static int jffs2_write_begin(struct file *filp, struct address_space *mapping, 115 struct jffs2_inode_info *f = JFFS2_INODE_INFO(pg->mapping->host); in jffs2_readpage() 119 ret = jffs2_do_readpage_unlock(pg->mapping->host, pg); in jffs2_readpage() 124 static int jffs2_write_begin(struct file *filp, struct address_space *mapping, in jffs2_write_begin() argument 129 struct inode *inode = mapping->host; in jffs2_write_begin() 135 pg = grab_cache_page_write_begin(mapping, index, flags); in jffs2_write_begin() 227 static int jffs2_write_end(struct file *filp, struct address_space *mapping, in jffs2_write_end() argument 234 struct inode *inode = mapping->host; in jffs2_write_end()
|
/fs/jfs/ |
D | inode.c | 279 static int jfs_writepages(struct address_space *mapping, in jfs_writepages() argument 282 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages() 290 static int jfs_readpages(struct file *file, struct address_space *mapping, in jfs_readpages() argument 293 return mpage_readpages(mapping, pages, nr_pages, jfs_get_block); in jfs_readpages() 296 static int jfs_write_begin(struct file *file, struct address_space *mapping, in jfs_write_begin() argument 300 return nobh_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in jfs_write_begin() 304 static sector_t jfs_bmap(struct address_space *mapping, sector_t block) in jfs_bmap() argument 306 return generic_block_bmap(mapping, block, jfs_get_block); in jfs_bmap()
|
/fs/hpfs/ |
D | file.c | 95 static int hpfs_write_begin(struct file *file, struct address_space *mapping, in hpfs_write_begin() argument 100 return cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in hpfs_write_begin() 102 &hpfs_i(mapping->host)->mmu_private); in hpfs_write_begin() 105 static sector_t _hpfs_bmap(struct address_space *mapping, sector_t block) in _hpfs_bmap() argument 107 return generic_block_bmap(mapping,block,hpfs_get_block); in _hpfs_bmap()
|
/fs/hugetlbfs/ |
D | inode.c | 234 struct address_space *mapping = filp->f_mapping; in hugetlbfs_read() local 235 struct inode *inode = mapping->host; in hugetlbfs_read() 271 page = find_get_page(mapping, index); in hugetlbfs_read() 327 struct address_space *mapping, in hugetlbfs_write_begin() argument 334 static int hugetlbfs_write_end(struct file *file, struct address_space *mapping, in hugetlbfs_write_end() argument 353 struct address_space *mapping = &inode->i_data; in truncate_hugepages() local 362 if (!pagevec_lookup(&pvec, mapping, next, PAGEVEC_SIZE)) { in truncate_hugepages() 382 BUG_ON(!lstart && mapping->nrpages); in truncate_hugepages() 462 struct address_space *mapping = inode->i_mapping; in hugetlb_vmtruncate() local 469 spin_lock(&mapping->i_mmap_lock); in hugetlb_vmtruncate() [all …]
|
/fs/omfs/ |
D | file.c | 309 static int omfs_readpages(struct file *file, struct address_space *mapping, in omfs_readpages() argument 312 return mpage_readpages(mapping, pages, nr_pages, omfs_get_block); in omfs_readpages() 321 omfs_writepages(struct address_space *mapping, struct writeback_control *wbc) in omfs_writepages() argument 323 return mpage_writepages(mapping, wbc, omfs_get_block); in omfs_writepages() 326 static int omfs_write_begin(struct file *file, struct address_space *mapping, in omfs_write_begin() argument 331 return block_write_begin(file, mapping, pos, len, flags, in omfs_write_begin() 335 static sector_t omfs_bmap(struct address_space *mapping, sector_t block) in omfs_bmap() argument 337 return generic_block_bmap(mapping, block, omfs_get_block); in omfs_bmap()
|