/mm/ |
D | shmem.c | 122 static int shmem_getpage_gfp(struct inode *inode, pgoff_t index, 125 static inline int shmem_getpage(struct inode *inode, pgoff_t index, in shmem_getpage() argument 128 return shmem_getpage_gfp(inode, index, pagep, sgp, in shmem_getpage() 129 mapping_gfp_mask(inode->i_mapping), fault_type); in shmem_getpage() 239 static void shmem_recalc_inode(struct inode *inode) in shmem_recalc_inode() argument 241 struct shmem_inode_info *info = SHMEM_I(inode); in shmem_recalc_inode() 244 freed = info->alloced - info->swapped - inode->i_mapping->nrpages; in shmem_recalc_inode() 246 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_recalc_inode() 250 inode->i_blocks -= freed * BLOCKS_PER_PAGE; in shmem_recalc_inode() 399 static void shmem_undo_range(struct inode *inode, loff_t lstart, loff_t lend, in shmem_undo_range() argument [all …]
|
D | filemap_xip.c | 59 struct inode *inode = mapping->host; in do_xip_mapping_read() local 71 isize = i_size_read(inode); in do_xip_mapping_read() 226 struct inode *inode = mapping->host; in xip_file_fault() local 235 size = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in xip_file_fault() 329 struct inode *inode = mapping->host; in __xip_file_write() local 389 if (pos > inode->i_size) { in __xip_file_write() 390 i_size_write(inode, pos); in __xip_file_write() 391 mark_inode_dirty(inode); in __xip_file_write() 402 struct inode *inode = mapping->host; in xip_file_write() local 407 mutex_lock(&inode->i_mutex); in xip_file_write() [all …]
|
D | truncate.c | 689 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache() argument 691 struct address_space *mapping = inode->i_mapping; in truncate_pagecache() 722 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize() argument 724 loff_t oldsize = inode->i_size; in truncate_setsize() 726 i_size_write(inode, newsize); in truncate_setsize() 728 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize() 729 truncate_pagecache(inode, newsize); in truncate_setsize() 752 void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to) in pagecache_isize_extended() argument 754 int bsize = 1 << inode->i_blkbits; in pagecache_isize_extended() 759 WARN_ON(to > inode->i_size); in pagecache_isize_extended() [all …]
|
D | filemap.c | 1467 struct inode *inode = mapping->host; in do_generic_file_read() local 1505 if (inode->i_blkbits == PAGE_CACHE_SHIFT || in do_generic_file_read() 1528 isize = i_size_read(inode); in do_generic_file_read() 1701 struct inode *inode = mapping->host; in generic_file_read_iter() local 1707 size = i_size_read(inode); in generic_file_read_iter() 1872 struct inode *inode = mapping->host; in filemap_fault() local 1878 size = round_up(i_size_read(inode), PAGE_CACHE_SIZE); in filemap_fault() 1928 size = round_up(i_size_read(inode), PAGE_CACHE_SIZE); in filemap_fault() 2062 struct inode *inode = file_inode(vma->vm_file); in filemap_page_mkwrite() local 2065 sb_start_pagefault(inode->i_sb); in filemap_page_mkwrite() [all …]
|
D | swapfile.c | 1763 struct inode *inode = mapping->host; in setup_swap_extents() local 1766 if (S_ISBLK(inode->i_mode)) { in setup_swap_extents() 1852 struct inode *inode; in SYSCALL_DEFINE1() local 1967 inode = mapping->host; in SYSCALL_DEFINE1() 1968 if (S_ISBLK(inode->i_mode)) { in SYSCALL_DEFINE1() 1969 struct block_device *bdev = I_BDEV(inode); in SYSCALL_DEFINE1() 1973 mutex_lock(&inode->i_mutex); in SYSCALL_DEFINE1() 1974 inode->i_flags &= ~S_SWAPFILE; in SYSCALL_DEFINE1() 1975 mutex_unlock(&inode->i_mutex); in SYSCALL_DEFINE1() 2095 static int swaps_open(struct inode *inode, struct file *file) in swaps_open() argument [all …]
|
D | cleancache.c | 183 static int cleancache_get_key(struct inode *inode, in cleancache_get_key() argument 186 int (*fhfn)(struct inode *, __u32 *fh, int *, struct inode *); in cleancache_get_key() 188 struct super_block *sb = inode->i_sb; in cleancache_get_key() 190 key->u.ino = inode->i_ino; in cleancache_get_key() 194 len = (*fhfn)(inode, &key->u.fh[0], &maxlen, NULL); in cleancache_get_key()
|
D | backing-dev.c | 73 struct inode *inode; in bdi_debug_stats_show() local 77 list_for_each_entry(inode, &wb->b_dirty, i_wb_list) in bdi_debug_stats_show() 79 list_for_each_entry(inode, &wb->b_io, i_wb_list) in bdi_debug_stats_show() 81 list_for_each_entry(inode, &wb->b_more_io, i_wb_list) in bdi_debug_stats_show() 83 list_for_each_entry(inode, &wb->b_dirty_time, i_wb_list) in bdi_debug_stats_show() 84 if (inode->i_state & I_DIRTY_TIME) in bdi_debug_stats_show() 125 static int bdi_debug_stats_open(struct inode *inode, struct file *file) in bdi_debug_stats_open() argument 127 return single_open(file, bdi_debug_stats_show, inode->i_private); in bdi_debug_stats_open()
|
D | page_io.c | 141 struct inode *inode = mapping->host; in generic_swapfile_activate() local 152 blkbits = inode->i_blkbits; in generic_swapfile_activate() 161 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate() 167 first_block = bmap(inode, probe_block); in generic_swapfile_activate() 183 block = bmap(inode, probe_block + block_in_page); in generic_swapfile_activate()
|
D | vmstat.c | 1050 static int fragmentation_open(struct inode *inode, struct file *file) in fragmentation_open() argument 1069 static int pagetypeinfo_open(struct inode *inode, struct file *file) in pagetypeinfo_open() argument 1162 static int zoneinfo_open(struct inode *inode, struct file *file) in zoneinfo_open() argument 1244 static int vmstat_open(struct inode *inode, struct file *file) in vmstat_open() argument 1529 static int unusable_open(struct inode *inode, struct file *file) in unusable_open() argument 1581 static int extfrag_open(struct inode *inode, struct file *file) in extfrag_open() argument
|
D | hugetlb.c | 132 static inline struct hugepage_subpool *subpool_inode(struct inode *inode) in subpool_inode() argument 134 return HUGETLBFS_SB(inode->i_sb)->spool; in subpool_inode() 430 static inline struct resv_map *inode_resv_map(struct inode *inode) in inode_resv_map() argument 432 return inode->i_mapping->private_data; in inode_resv_map() 440 struct inode *inode = mapping->host; in vma_resv_map() local 442 return inode_resv_map(inode); in vma_resv_map() 3042 struct inode *inode = mapping->host; in hugetlb_no_page() local 3053 spin_lock(&inode->i_lock); in hugetlb_no_page() 3054 inode->i_blocks += blocks_per_huge_page(h); in hugetlb_no_page() 3055 spin_unlock(&inode->i_lock); in hugetlb_no_page() [all …]
|
D | readahead.c | 156 struct inode *inode = mapping->host; in __do_page_cache_readahead() local 162 loff_t isize = i_size_read(inode); in __do_page_cache_readahead()
|
D | nommu.c | 2085 int nommu_shrink_inode_mappings(struct inode *inode, size_t size, in nommu_shrink_inode_mappings() argument 2097 mutex_lock(&inode->i_mapping->i_mmap_mutex); in nommu_shrink_inode_mappings() 2100 vma_interval_tree_foreach(vma, &inode->i_mapping->i_mmap, low, high) { in nommu_shrink_inode_mappings() 2104 mutex_unlock(&inode->i_mapping->i_mmap_mutex); in nommu_shrink_inode_mappings() 2116 vma_interval_tree_foreach(vma, &inode->i_mapping->i_mmap, in nommu_shrink_inode_mappings() 2132 mutex_unlock(&inode->i_mapping->i_mmap_mutex); in nommu_shrink_inode_mappings()
|
D | slab_common.c | 935 static int slabinfo_open(struct inode *inode, struct file *file) in slabinfo_open() argument
|
D | memblock.c | 1567 static int memblock_debug_open(struct inode *inode, struct file *file) in memblock_debug_open() argument 1569 return single_open(file, memblock_debug_show, inode->i_private); in memblock_debug_open()
|
D | zsmalloc.c | 539 static int zs_stats_size_open(struct inode *inode, struct file *file) in zs_stats_size_open() argument 541 return single_open(file, zs_stats_size_show, inode->i_private); in zs_stats_size_open()
|
D | kmemleak.c | 1584 static int kmemleak_open(struct inode *inode, struct file *file) in kmemleak_open() argument
|
D | vmscan.c | 211 static int debug_shrinker_open(struct inode *inode, struct file *file) in debug_shrinker_open() argument 213 return single_open(file, debug_shrinker_show, inode->i_private); in debug_shrinker_open()
|
D | mmap.c | 1357 struct inode *inode = file_inode(file); in do_mmap_pgoff() local 1368 if (IS_APPEND(inode) && (file->f_mode & FMODE_WRITE)) in do_mmap_pgoff()
|
D | vmalloc.c | 2647 static int vmalloc_open(struct inode *inode, struct file *file) in vmalloc_open() argument
|
D | slab.c | 4186 static int slabstats_open(struct inode *inode, struct file *file) in slabstats_open() argument
|