Home
last modified time | relevance | path

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

1234567891011

/linux-4.19.296/include/linux/
Dpagemap.h48 static inline void mapping_set_error(struct address_space *mapping, int error) in mapping_set_error() argument
54 filemap_set_wb_err(mapping, error); in mapping_set_error()
58 set_bit(AS_ENOSPC, &mapping->flags); in mapping_set_error()
60 set_bit(AS_EIO, &mapping->flags); in mapping_set_error()
63 static inline void mapping_set_unevictable(struct address_space *mapping) in mapping_set_unevictable() argument
65 set_bit(AS_UNEVICTABLE, &mapping->flags); in mapping_set_unevictable()
68 static inline void mapping_clear_unevictable(struct address_space *mapping) in mapping_clear_unevictable() argument
70 clear_bit(AS_UNEVICTABLE, &mapping->flags); in mapping_clear_unevictable()
73 static inline int mapping_unevictable(struct address_space *mapping) in mapping_unevictable() argument
75 if (mapping) in mapping_unevictable()
[all …]
Dio-mapping.h68 io_mapping_fini(struct io_mapping *mapping) in io_mapping_fini() argument
70 iomap_free(mapping->base, mapping->size); in io_mapping_fini()
75 io_mapping_map_atomic_wc(struct io_mapping *mapping, in io_mapping_map_atomic_wc() argument
81 BUG_ON(offset >= mapping->size); in io_mapping_map_atomic_wc()
82 phys_addr = mapping->base + offset; in io_mapping_map_atomic_wc()
84 return iomap_atomic_prot_pfn(pfn, mapping->prot); in io_mapping_map_atomic_wc()
94 io_mapping_map_wc(struct io_mapping *mapping, in io_mapping_map_wc() argument
100 BUG_ON(offset >= mapping->size); in io_mapping_map_wc()
101 phys_addr = mapping->base + offset; in io_mapping_map_wc()
141 io_mapping_fini(struct io_mapping *mapping) in io_mapping_fini() argument
[all …]
Dcleancache.h52 static inline bool cleancache_fs_enabled_mapping(struct address_space *mapping) in cleancache_fs_enabled_mapping() argument
54 return mapping->host->i_sb->cleancache_poolid >= 0; in cleancache_fs_enabled_mapping()
58 return cleancache_fs_enabled_mapping(page->mapping); in cleancache_fs_enabled()
104 static inline void cleancache_invalidate_page(struct address_space *mapping, in cleancache_invalidate_page() argument
108 if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) in cleancache_invalidate_page()
109 __cleancache_invalidate_page(mapping, page); in cleancache_invalidate_page()
112 static inline void cleancache_invalidate_inode(struct address_space *mapping) in cleancache_invalidate_inode() argument
114 if (cleancache_enabled && cleancache_fs_enabled_mapping(mapping)) in cleancache_invalidate_inode()
115 __cleancache_invalidate_inode(mapping); in cleancache_invalidate_inode()
Dpagevec.h27 struct address_space *mapping,
32 struct address_space *mapping,
35 struct address_space *mapping, in pagevec_lookup() argument
38 return pagevec_lookup_range(pvec, mapping, start, (pgoff_t)-1); in pagevec_lookup()
42 struct address_space *mapping, pgoff_t *index, pgoff_t end,
45 struct address_space *mapping, pgoff_t *index, pgoff_t end,
48 struct address_space *mapping, pgoff_t *index, int tag) in pagevec_lookup_tag() argument
50 return pagevec_lookup_range_tag(pvec, mapping, index, (pgoff_t)-1, tag); in pagevec_lookup_tag()
Ddax.h87 int dax_writeback_mapping_range(struct address_space *mapping,
90 struct page *dax_layout_busy_page(struct address_space *mapping);
114 static inline struct page *dax_layout_busy_page(struct address_space *mapping) in dax_layout_busy_page() argument
119 static inline int dax_writeback_mapping_range(struct address_space *mapping, in dax_writeback_mapping_range() argument
127 if (IS_DAX(page->mapping->host)) in dax_lock_mapping_entry()
155 int dax_delete_mapping_entry(struct address_space *mapping, pgoff_t index);
156 int dax_invalidate_mapping_entry_sync(struct address_space *mapping,
172 static inline bool dax_mapping(struct address_space *mapping) in dax_mapping() argument
174 return mapping->host && IS_DAX(mapping->host); in dax_mapping()
Dshmem_fs.h64 extern bool shmem_mapping(struct address_space *mapping);
66 static inline bool shmem_mapping(struct address_space *mapping) in shmem_mapping() argument
71 extern void shmem_unlock_mapping(struct address_space *mapping);
72 extern struct page *shmem_read_mapping_page_gfp(struct address_space *mapping,
78 extern unsigned long shmem_partial_swap_usage(struct address_space *mapping,
95 struct address_space *mapping, pgoff_t index) in shmem_read_mapping_page() argument
97 return shmem_read_mapping_page_gfp(mapping, index, in shmem_read_mapping_page()
98 mapping_gfp_mask(mapping)); in shmem_read_mapping_page()
/linux-4.19.296/fs/
Ddax.c118 struct address_space *mapping; member
127 static wait_queue_head_t *dax_entry_waitqueue(struct address_space *mapping, in dax_entry_waitqueue() argument
140 key->mapping = mapping; in dax_entry_waitqueue()
143 hash = hash_long((unsigned long)mapping ^ index, DAX_WAIT_TABLE_BITS); in dax_entry_waitqueue()
154 if (key->mapping != ewait->key.mapping || in wake_exceptional_entry_func()
165 static void dax_wake_mapping_entry_waiter(struct address_space *mapping, in dax_wake_mapping_entry_waiter() argument
171 wq = dax_entry_waitqueue(mapping, index, entry, &key); in dax_wake_mapping_entry_waiter()
187 static inline int slot_locked(struct address_space *mapping, void **slot) in slot_locked() argument
190 radix_tree_deref_slot_protected(slot, &mapping->i_pages.xa_lock); in slot_locked()
197 static inline void *lock_slot(struct address_space *mapping, void **slot) in lock_slot() argument
[all …]
Dbuffer.c515 int sync_mapping_buffers(struct address_space *mapping) in sync_mapping_buffers() argument
517 struct address_space *buffer_mapping = mapping->private_data; in sync_mapping_buffers()
519 if (buffer_mapping == NULL || list_empty(&mapping->private_list)) in sync_mapping_buffers()
523 &mapping->private_list); in sync_mapping_buffers()
546 struct address_space *mapping = inode->i_mapping; in mark_buffer_dirty_inode() local
547 struct address_space *buffer_mapping = bh->b_page->mapping; in mark_buffer_dirty_inode()
550 if (!mapping->private_data) { in mark_buffer_dirty_inode()
551 mapping->private_data = buffer_mapping; in mark_buffer_dirty_inode()
553 BUG_ON(mapping->private_data != buffer_mapping); in mark_buffer_dirty_inode()
558 &mapping->private_list); in mark_buffer_dirty_inode()
[all …]
/linux-4.19.296/fs/gfs2/
Daops.c98 struct inode *inode = page->mapping->host; in gfs2_writepage_common()
112 page->mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE); in gfs2_writepage_common()
147 struct inode * const inode = page->mapping->host; in gfs2_write_full_page()
180 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage()
205 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
231 static int gfs2_writepages(struct address_space *mapping, in gfs2_writepages() argument
234 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages()
235 int ret = mpage_writepages(mapping, wbc, gfs2_get_block_noalloc); in gfs2_writepages()
260 static int gfs2_write_jdata_pagevec(struct address_space *mapping, in gfs2_write_jdata_pagevec() argument
266 struct inode *inode = mapping->host; 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()
/linux-4.19.296/fs/afs/
Dwrite.c71 int afs_write_begin(struct file *file, struct address_space *mapping, in afs_write_begin() argument
92 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin()
175 int afs_write_end(struct file *file, struct address_space *mapping, in afs_write_end() argument
226 static void afs_kill_pages(struct address_space *mapping, in afs_kill_pages() argument
229 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_kill_pages()
244 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_kill_pages()
255 generic_error_remove_page(mapping, page); in afs_kill_pages()
269 struct address_space *mapping, in afs_redirty_pages() argument
272 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_redirty_pages()
287 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_redirty_pages()
[all …]
/linux-4.19.296/drivers/sh/clk/
Dcore.c340 struct clk_mapping *mapping = clk->mapping; in clk_establish_mapping() local
345 if (!mapping) { in clk_establish_mapping()
352 clk->mapping = &dummy_mapping; in clk_establish_mapping()
361 mapping = clkp->mapping; in clk_establish_mapping()
362 BUG_ON(!mapping); in clk_establish_mapping()
368 if (!mapping->base && mapping->phys) { in clk_establish_mapping()
369 kref_init(&mapping->ref); in clk_establish_mapping()
371 mapping->base = ioremap_nocache(mapping->phys, mapping->len); in clk_establish_mapping()
372 if (unlikely(!mapping->base)) in clk_establish_mapping()
374 } else if (mapping->base) { in clk_establish_mapping()
[all …]
/linux-4.19.296/fs/hpfs/
Dfile.c128 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 …]
/linux-4.19.296/fs/9p/
Dvfs_addr.c56 struct inode *inode = page->mapping->host; in v9fs_fid_readpage()
113 static int v9fs_vfs_readpages(struct file *filp, struct address_space *mapping, in v9fs_vfs_readpages() argument
119 inode = mapping->host; in v9fs_vfs_readpages()
122 ret = v9fs_readpages_from_fscache(inode, mapping, pages, &nr_pages); in v9fs_vfs_readpages()
126 ret = read_cache_pages(mapping, pages, v9fs_fid_readpage, in v9fs_vfs_readpages()
165 struct inode *inode = page->mapping->host; in v9fs_vfs_writepage_locked()
206 mapping_set_error(page->mapping, retval); in v9fs_vfs_writepage()
223 struct inode *inode = page->mapping->host; in v9fs_launder_page()
270 static int v9fs_write_begin(struct file *filp, struct address_space *mapping, in v9fs_write_begin() argument
278 struct inode *inode = mapping->host; in v9fs_write_begin()
[all …]
/linux-4.19.296/include/trace/events/
Dfilemap.h31 __entry->i_ino = page->mapping->host->i_ino;
33 if (page->mapping->host->i_sb)
34 __entry->s_dev = page->mapping->host->i_sb->s_dev;
36 __entry->s_dev = page->mapping->host->i_rdev;
58 TP_PROTO(struct address_space *mapping, errseq_t eseq),
60 TP_ARGS(mapping, eseq),
69 __entry->i_ino = mapping->host->i_ino;
71 if (mapping->host->i_sb)
72 __entry->s_dev = mapping->host->i_sb->s_dev;
74 __entry->s_dev = mapping->host->i_rdev;
Dpage_ref.h24 __field(void *, mapping)
34 __entry->mapping = page->mapping;
43 __entry->mapcount, __entry->mapping, __entry->mt,
72 __field(void *, mapping)
83 __entry->mapping = page->mapping;
93 __entry->mapcount, __entry->mapping, __entry->mt,
/linux-4.19.296/fs/nilfs2/
Dpage.c48 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()
336 page->mapping = NULL; in nilfs_copy_back_pages()
339 page->mapping = dmap; in nilfs_copy_back_pages()
361 void nilfs_clear_dirty_pages(struct address_space *mapping, bool silent) in nilfs_clear_dirty_pages() argument
369 while (pagevec_lookup_tag(&pvec, mapping, &index, in nilfs_clear_dirty_pages()
381 if (likely(page->mapping == mapping)) in nilfs_clear_dirty_pages()
398 struct inode *inode = page->mapping->host; in nilfs_clear_dirty_page()
451 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 …]
/linux-4.19.296/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 …]
/linux-4.19.296/fs/jfs/
Dinode.c291 static int jfs_writepages(struct address_space *mapping, in jfs_writepages() argument
294 return mpage_writepages(mapping, wbc, jfs_get_block); in jfs_writepages()
302 static int jfs_readpages(struct file *file, struct address_space *mapping, in jfs_readpages() argument
305 return mpage_readpages(mapping, pages, nr_pages, jfs_get_block); in jfs_readpages()
308 static void jfs_write_failed(struct address_space *mapping, loff_t to) in jfs_write_failed() argument
310 struct inode *inode = mapping->host; in jfs_write_failed()
318 static int jfs_write_begin(struct file *file, struct address_space *mapping, in jfs_write_begin() argument
324 ret = nobh_write_begin(mapping, pos, len, flags, pagep, fsdata, in jfs_write_begin()
327 jfs_write_failed(mapping, pos + len); in jfs_write_begin()
332 static sector_t jfs_bmap(struct address_space *mapping, sector_t block) in jfs_bmap() argument
[all …]
/linux-4.19.296/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()
170 mapping_set_error(page->mapping, -EIO); in f2fs_write_end_io()
175 f2fs_bug_on(sbi, page->mapping == NODE_MAPPING(sbi) && in f2fs_write_end_io()
343 if (bvec->bv_page->mapping) in __has_merged_page()
351 if (inode && inode == target->mapping->host) in __has_merged_page()
718 struct address_space *mapping = inode->i_mapping; in f2fs_get_read_data_page() local
724 page = f2fs_grab_cache_page(mapping, index, for_write); in f2fs_get_read_data_page()
776 struct address_space *mapping = inode->i_mapping; in f2fs_find_data_page() local
[all …]
/linux-4.19.296/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()
/linux-4.19.296/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()
/linux-4.19.296/fs/freevxfs/
Dvxfs_subr.c68 vxfs_get_page(struct address_space *mapping, u_long n) in vxfs_get_page() argument
72 pp = read_mapping_page(mapping, n, NULL); in vxfs_get_page()
180 vxfs_bmap(struct address_space *mapping, sector_t block) in vxfs_bmap() argument
182 return generic_block_bmap(mapping, block, vxfs_getblk); in vxfs_bmap()
/linux-4.19.296/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 …]

1234567891011