/mm/ |
D | shmem.c | 142 static int shmem_swapin_page(struct inode *inode, pgoff_t index, 146 static int shmem_getpage_gfp(struct inode *inode, pgoff_t index, 151 int shmem_getpage(struct inode *inode, pgoff_t index, in shmem_getpage() argument 154 return shmem_getpage_gfp(inode, index, pagep, sgp, in shmem_getpage() 155 mapping_gfp_mask(inode->i_mapping), NULL, NULL, NULL); in shmem_getpage() 215 static inline bool shmem_inode_acct_block(struct inode *inode, long pages) in shmem_inode_acct_block() argument 217 struct shmem_inode_info *info = SHMEM_I(inode); in shmem_inode_acct_block() 218 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_inode_acct_block() 237 static inline void shmem_inode_unacct_blocks(struct inode *inode, long pages) in shmem_inode_unacct_blocks() argument 239 struct shmem_inode_info *info = SHMEM_I(inode); in shmem_inode_unacct_blocks() [all …]
|
D | truncate.c | 802 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache() argument 804 struct address_space *mapping = inode->i_mapping; in truncate_pagecache() 835 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize() argument 837 loff_t oldsize = inode->i_size; in truncate_setsize() 839 i_size_write(inode, newsize); in truncate_setsize() 841 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize() 842 truncate_pagecache(inode, newsize); in truncate_setsize() 865 void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to) in pagecache_isize_extended() argument 867 int bsize = i_blocksize(inode); in pagecache_isize_extended() 872 WARN_ON(to > inode->i_size); in pagecache_isize_extended() [all …]
|
D | filemap.c | 2014 struct inode *inode = mapping->host; in generic_file_buffered_read() local 2024 if (unlikely(*ppos >= inode->i_sb->s_maxbytes)) in generic_file_buffered_read() 2026 iov_iter_truncate(iter, inode->i_sb->s_maxbytes); in generic_file_buffered_read() 2080 if (inode->i_blkbits == PAGE_SHIFT || in generic_file_buffered_read() 2106 isize = i_size_read(inode); in generic_file_buffered_read() 2285 struct inode *inode = mapping->host; in generic_file_read_iter() local 2288 size = i_size_read(inode); in generic_file_read_iter() 2320 IS_DAX(inode)) in generic_file_read_iter() 2483 struct inode *inode = mapping->host; in filemap_fault() local 2489 max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in filemap_fault() [all …]
|
D | cleancache.c | 144 static int cleancache_get_key(struct inode *inode, in cleancache_get_key() argument 147 int (*fhfn)(struct inode *, __u32 *fh, int *, struct inode *); in cleancache_get_key() 149 struct super_block *sb = inode->i_sb; in cleancache_get_key() 151 key->u.ino = inode->i_ino; in cleancache_get_key() 155 len = (*fhfn)(inode, &key->u.fh[0], &maxlen, NULL); in cleancache_get_key()
|
D | page-writeback.c | 1866 struct inode *inode = mapping->host; in balance_dirty_pages_ratelimited() local 1867 struct backing_dev_info *bdi = inode_to_bdi(inode); in balance_dirty_pages_ratelimited() 1875 if (inode_cgwb_enabled(inode)) in balance_dirty_pages_ratelimited() 2414 struct inode *inode = mapping->host; in account_page_dirtied() local 2421 inode_attach_wb(inode, page); in account_page_dirtied() 2422 wb = inode_to_wb(inode); in account_page_dirtied() 2509 struct inode *inode = mapping->host; in account_page_redirty() local 2513 wb = unlocked_inode_to_wb_begin(inode, &cookie); in account_page_redirty() 2517 unlocked_inode_to_wb_end(inode, &cookie); in account_page_redirty() 2621 struct inode *inode = mapping->host; in __cancel_dirty_page() local [all …]
|
D | fadvise.c | 32 struct inode *inode; in generic_fadvise() local 40 inode = file_inode(file); in generic_fadvise() 41 if (S_ISFIFO(inode->i_mode)) in generic_fadvise() 50 if (IS_DAX(inode) || (bdi == &noop_backing_dev_info)) { in generic_fadvise() 133 endbyte != inode->i_size - 1) { in generic_fadvise()
|
D | swapfile.c | 2385 struct inode *inode = mapping->host; in setup_swap_extents() local 2388 if (S_ISBLK(inode->i_mode)) { in setup_swap_extents() 2523 struct inode *inode; in SYSCALL_DEFINE1() local 2660 inode = mapping->host; in SYSCALL_DEFINE1() 2661 if (S_ISBLK(inode->i_mode)) { in SYSCALL_DEFINE1() 2662 struct block_device *bdev = I_BDEV(inode); in SYSCALL_DEFINE1() 2668 inode_lock(inode); in SYSCALL_DEFINE1() 2669 inode->i_flags &= ~S_SWAPFILE; in SYSCALL_DEFINE1() 2670 inode_unlock(inode); in SYSCALL_DEFINE1() 2785 static int swaps_open(struct inode *inode, struct file *file) in swaps_open() argument [all …]
|
D | userfaultfd.c | 35 struct inode *inode; in mcopy_atomic_pte() local 79 inode = dst_vma->vm_file->f_inode; in mcopy_atomic_pte() 81 max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in mcopy_atomic_pte() 121 struct inode *inode; in mfill_zeropage_pte() local 128 inode = dst_vma->vm_file->f_inode; in mfill_zeropage_pte() 130 max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in mfill_zeropage_pte()
|
D | page_io.c | 152 struct inode *inode = mapping->host; in generic_swapfile_activate() local 163 blkbits = inode->i_blkbits; in generic_swapfile_activate() 172 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate() 180 first_block = bmap(inode, probe_block); in generic_swapfile_activate() 196 block = bmap(inode, probe_block + block_in_page); in generic_swapfile_activate()
|
D | memfd.c | 141 struct inode *inode = file_inode(file); in memfd_add_seals() local 181 inode_lock(inode); in memfd_add_seals() 210 inode_unlock(inode); in memfd_add_seals()
|
D | hugetlb.c | 213 static inline struct hugepage_subpool *subpool_inode(struct inode *inode) in subpool_inode() argument 215 return HUGETLBFS_SB(inode->i_sb)->spool; in subpool_inode() 575 void hugetlb_fix_reserve_counts(struct inode *inode) in hugetlb_fix_reserve_counts() argument 577 struct hugepage_subpool *spool = subpool_inode(inode); in hugetlb_fix_reserve_counts() 582 struct hstate *h = hstate_inode(inode); in hugetlb_fix_reserve_counts() 743 static inline struct resv_map *inode_resv_map(struct inode *inode) in inode_resv_map() argument 753 return (struct resv_map *)(&inode->i_data)->private_data; in inode_resv_map() 761 struct inode *inode = mapping->host; in vma_resv_map() local 763 return inode_resv_map(inode); in vma_resv_map() 3887 struct inode *inode = mapping->host; in huge_add_to_page_cache() local [all …]
|
D | z3fold.c | 167 struct inode *inode; member 280 pool->inode = alloc_anon_inode(z3fold_mnt->mnt_sb); in z3fold_register_migration() 281 if (IS_ERR(pool->inode)) { in z3fold_register_migration() 282 pool->inode = NULL; in z3fold_register_migration() 286 pool->inode->i_mapping->private_data = pool; in z3fold_register_migration() 287 pool->inode->i_mapping->a_ops = &z3fold_aops; in z3fold_register_migration() 293 if (pool->inode) in z3fold_unregister_migration() 294 iput(pool->inode); in z3fold_unregister_migration() 949 __SetPageMovable(page, pool->inode->i_mapping); in z3fold_alloc() 953 __SetPageMovable(page, pool->inode->i_mapping); in z3fold_alloc()
|
D | backing-dev.c | 56 struct inode *inode; in bdi_debug_stats_show() local 60 list_for_each_entry(inode, &wb->b_dirty, i_io_list) in bdi_debug_stats_show() 62 list_for_each_entry(inode, &wb->b_io, i_io_list) in bdi_debug_stats_show() 64 list_for_each_entry(inode, &wb->b_more_io, i_io_list) in bdi_debug_stats_show() 66 list_for_each_entry(inode, &wb->b_dirty_time, i_io_list) in bdi_debug_stats_show() 67 if (inode->i_state & I_DIRTY_TIME) in bdi_debug_stats_show()
|
D | readahead.c | 159 struct inode *inode = mapping->host; in __do_page_cache_readahead() local 165 loff_t isize = i_size_read(inode); in __do_page_cache_readahead()
|
D | nommu.c | 1787 int nommu_shrink_inode_mappings(struct inode *inode, size_t size, in nommu_shrink_inode_mappings() argument 1799 i_mmap_lock_read(inode->i_mapping); in nommu_shrink_inode_mappings() 1802 vma_interval_tree_foreach(vma, &inode->i_mapping->i_mmap, low, high) { in nommu_shrink_inode_mappings() 1806 i_mmap_unlock_read(inode->i_mapping); in nommu_shrink_inode_mappings() 1818 vma_interval_tree_foreach(vma, &inode->i_mapping->i_mmap, 0, ULONG_MAX) { in nommu_shrink_inode_mappings() 1833 i_mmap_unlock_read(inode->i_mapping); in nommu_shrink_inode_mappings()
|
D | zsmalloc.c | 270 struct inode *inode; member 2139 pool->inode = alloc_anon_inode(zsmalloc_mnt->mnt_sb); in zs_register_migration() 2140 if (IS_ERR(pool->inode)) { in zs_register_migration() 2141 pool->inode = NULL; in zs_register_migration() 2145 pool->inode->i_mapping->private_data = pool; in zs_register_migration() 2146 pool->inode->i_mapping->a_ops = &zsmalloc_aops; in zs_register_migration() 2181 iput(pool->inode); in zs_unregister_migration() 2239 __SetPageMovable(page, pool->inode->i_mapping); in SetZsPageMovable()
|
D | mmap.c | 1365 static inline u64 file_mmap_size_max(struct file *file, struct inode *inode) in file_mmap_size_max() argument 1367 if (S_ISREG(inode->i_mode)) in file_mmap_size_max() 1370 if (S_ISBLK(inode->i_mode)) in file_mmap_size_max() 1373 if (S_ISSOCK(inode->i_mode)) in file_mmap_size_max() 1384 static inline bool file_mmap_ok(struct file *file, struct inode *inode, in file_mmap_ok() argument 1387 u64 maxsize = file_mmap_size_max(file, inode); in file_mmap_ok() 1479 struct inode *inode = file_inode(file); in do_mmap() local 1482 if (!file_mmap_ok(file, inode, pgoff, len)) in do_mmap() 1512 if (IS_APPEND(inode) && (file->f_mode & FMODE_WRITE)) in do_mmap()
|
D | swap_state.c | 559 struct inode *inode = si->swap_file->f_mapping->host; in swap_cluster_readahead() local 560 if (inode_read_congested(inode)) in swap_cluster_readahead()
|
D | vmstat.c | 2073 static int unusable_open(struct inode *inode, struct file *file) in unusable_open() argument 2125 static int extfrag_open(struct inode *inode, struct file *file) in extfrag_open() argument
|
D | vmscan.c | 778 static int may_write_to_inode(struct inode *inode, struct scan_control *sc) in may_write_to_inode() argument 782 if (!inode_write_congested(inode)) in may_write_to_inode() 784 if (inode_to_bdi(inode) == current->backing_dev_info) in may_write_to_inode()
|
D | slab_common.c | 1571 static int slabinfo_open(struct inode *inode, struct file *file) in slabinfo_open() argument
|
D | kmemleak.c | 1698 static int kmemleak_open(struct inode *inode, struct file *file) in kmemleak_open() argument
|