Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 21 of 21) sorted by relevance

/mm/
Dshmem.c124 static int shmem_getpage_gfp(struct inode *inode, pgoff_t index,
127 static inline int shmem_getpage(struct inode *inode, pgoff_t index, in shmem_getpage() argument
130 return shmem_getpage_gfp(inode, index, pagep, sgp, in shmem_getpage()
131 mapping_gfp_mask(inode->i_mapping), fault_type); in shmem_getpage()
236 static void shmem_recalc_inode(struct inode *inode) in shmem_recalc_inode() argument
238 struct shmem_inode_info *info = SHMEM_I(inode); in shmem_recalc_inode()
241 freed = info->alloced - info->swapped - inode->i_mapping->nrpages; in shmem_recalc_inode()
243 struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb); in shmem_recalc_inode()
247 inode->i_blocks -= freed * BLOCKS_PER_PAGE; in shmem_recalc_inode()
396 static void shmem_undo_range(struct inode *inode, loff_t lstart, loff_t lend, in shmem_undo_range() argument
[all …]
Dtruncate.c674 void truncate_pagecache(struct inode *inode, loff_t newsize) in truncate_pagecache() argument
676 struct address_space *mapping = inode->i_mapping; in truncate_pagecache()
707 void truncate_setsize(struct inode *inode, loff_t newsize) in truncate_setsize() argument
709 loff_t oldsize = inode->i_size; in truncate_setsize()
711 i_size_write(inode, newsize); in truncate_setsize()
713 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize()
714 truncate_pagecache(inode, newsize); in truncate_setsize()
737 void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to) in pagecache_isize_extended() argument
739 int bsize = i_blocksize(inode); in pagecache_isize_extended()
744 WARN_ON(to > inode->i_size); in pagecache_isize_extended()
[all …]
Dfilemap.c1542 struct inode *inode = mapping->host; in do_generic_file_read() local
1594 if (inode->i_blkbits == PAGE_CACHE_SHIFT || in do_generic_file_read()
1617 isize = i_size_read(inode); in do_generic_file_read()
1789 struct inode *inode = mapping->host; in generic_file_read_iter() local
1795 size = i_size_read(inode); in generic_file_read_iter()
1818 IS_DAX(inode)) { in generic_file_read_iter()
1960 struct inode *inode = mapping->host; in filemap_fault() local
1966 size = round_up(i_size_read(inode), PAGE_CACHE_SIZE); in filemap_fault()
2016 size = round_up(i_size_read(inode), PAGE_CACHE_SIZE); in filemap_fault()
2150 struct inode *inode = file_inode(vma->vm_file); in filemap_page_mkwrite() local
[all …]
Dcleancache.c145 static int cleancache_get_key(struct inode *inode, in cleancache_get_key() argument
148 int (*fhfn)(struct inode *, __u32 *fh, int *, struct inode *); in cleancache_get_key()
150 struct super_block *sb = inode->i_sb; in cleancache_get_key()
152 key->u.ino = inode->i_ino; in cleancache_get_key()
156 len = (*fhfn)(inode, &key->u.fh[0], &maxlen, NULL); in cleancache_get_key()
Dswapfile.c1763 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 …]
Dpage-writeback.c1826 struct inode *inode = mapping->host; in balance_dirty_pages_ratelimited() local
1827 struct backing_dev_info *bdi = inode_to_bdi(inode); in balance_dirty_pages_ratelimited()
1835 if (inode_cgwb_enabled(inode)) in balance_dirty_pages_ratelimited()
2419 struct inode *inode = mapping->host; in account_page_dirtied() local
2426 inode_attach_wb(inode, page); in account_page_dirtied()
2427 wb = inode_to_wb(inode); in account_page_dirtied()
2515 struct inode *inode = mapping->host; in account_page_redirty() local
2519 wb = unlocked_inode_to_wb_begin(inode, &cookie); in account_page_redirty()
2523 unlocked_inode_to_wb_end(inode, &cookie); in account_page_redirty()
2626 struct inode *inode = mapping->host; in cancel_dirty_page() local
[all …]
Dfadvise.c31 struct inode *inode; in SYSCALL_DEFINE4() local
43 inode = file_inode(f.file); in SYSCALL_DEFINE4()
44 if (S_ISFIFO(inode->i_mode)) { in SYSCALL_DEFINE4()
55 if (IS_DAX(inode)) { in SYSCALL_DEFINE4()
Dpage_io.c136 struct inode *inode = mapping->host; in generic_swapfile_activate() local
147 blkbits = inode->i_blkbits; in generic_swapfile_activate()
156 last_block = i_size_read(inode) >> blkbits; in generic_swapfile_activate()
162 first_block = bmap(inode, probe_block); in generic_swapfile_activate()
178 block = bmap(inode, probe_block + block_in_page); in generic_swapfile_activate()
Dbacking-dev.c55 struct inode *inode; in bdi_debug_stats_show() local
59 list_for_each_entry(inode, &wb->b_dirty, i_io_list) in bdi_debug_stats_show()
61 list_for_each_entry(inode, &wb->b_io, i_io_list) in bdi_debug_stats_show()
63 list_for_each_entry(inode, &wb->b_more_io, i_io_list) in bdi_debug_stats_show()
65 list_for_each_entry(inode, &wb->b_dirty_time, i_io_list) in bdi_debug_stats_show()
66 if (inode->i_state & I_DIRTY_TIME) in bdi_debug_stats_show()
107 static int bdi_debug_stats_open(struct inode *inode, struct file *file) in bdi_debug_stats_open() argument
109 return single_open(file, bdi_debug_stats_show, inode->i_private); in bdi_debug_stats_open()
Dhugetlb.c221 static inline struct hugepage_subpool *subpool_inode(struct inode *inode) in subpool_inode() argument
223 return HUGETLBFS_SB(inode->i_sb)->spool; in subpool_inode()
583 void hugetlb_fix_reserve_counts(struct inode *inode, bool restore_reserve) in hugetlb_fix_reserve_counts() argument
585 struct hugepage_subpool *spool = subpool_inode(inode); in hugetlb_fix_reserve_counts()
590 struct hstate *h = hstate_inode(inode); in hugetlb_fix_reserve_counts()
757 static inline struct resv_map *inode_resv_map(struct inode *inode) in inode_resv_map() argument
759 return inode->i_mapping->private_data; in inode_resv_map()
767 struct inode *inode = mapping->host; in vma_resv_map() local
769 return inode_resv_map(inode); in vma_resv_map()
3633 struct inode *inode = mapping->host; in huge_add_to_page_cache() local
[all …]
Dvmstat.c1179 static int fragmentation_open(struct inode *inode, struct file *file) in fragmentation_open() argument
1198 static int pagetypeinfo_open(struct inode *inode, struct file *file) in pagetypeinfo_open() argument
1291 static int zoneinfo_open(struct inode *inode, struct file *file) in zoneinfo_open() argument
1375 static int vmstat_open(struct inode *inode, struct file *file) in vmstat_open() argument
1675 static int unusable_open(struct inode *inode, struct file *file) in unusable_open() argument
1727 static int extfrag_open(struct inode *inode, struct file *file) in extfrag_open() argument
Dreadahead.c156 struct inode *inode = mapping->host; in __do_page_cache_readahead() local
162 loff_t isize = i_size_read(inode); in __do_page_cache_readahead()
Dnommu.c2017 int nommu_shrink_inode_mappings(struct inode *inode, size_t size, in nommu_shrink_inode_mappings() argument
2029 i_mmap_lock_read(inode->i_mapping); in nommu_shrink_inode_mappings()
2032 vma_interval_tree_foreach(vma, &inode->i_mapping->i_mmap, low, high) { in nommu_shrink_inode_mappings()
2036 i_mmap_unlock_read(inode->i_mapping); in nommu_shrink_inode_mappings()
2048 vma_interval_tree_foreach(vma, &inode->i_mapping->i_mmap, 0, ULONG_MAX) { in nommu_shrink_inode_mappings()
2063 i_mmap_unlock_read(inode->i_mapping); in nommu_shrink_inode_mappings()
Dmmap.c1300 static inline u64 file_mmap_size_max(struct file *file, struct inode *inode) in file_mmap_size_max() argument
1302 if (S_ISREG(inode->i_mode)) in file_mmap_size_max()
1305 if (S_ISBLK(inode->i_mode)) in file_mmap_size_max()
1316 static inline bool file_mmap_ok(struct file *file, struct inode *inode, in file_mmap_ok() argument
1319 u64 maxsize = file_mmap_size_max(file, inode); in file_mmap_ok()
1392 struct inode *inode = file_inode(file); in do_mmap() local
1394 if (!file_mmap_ok(file, inode, pgoff, len)) in do_mmap()
1406 if (IS_APPEND(inode) && (file->f_mode & FMODE_WRITE)) in do_mmap()
Dmemblock.c1700 static int memblock_debug_open(struct inode *inode, struct file *file) in memblock_debug_open() argument
1702 return single_open(file, memblock_debug_show, inode->i_private); in memblock_debug_open()
Dzsmalloc.c553 static int zs_stats_size_open(struct inode *inode, struct file *file) in zs_stats_size_open() argument
555 return single_open(file, zs_stats_size_show, inode->i_private); in zs_stats_size_open()
Dslab_common.c1164 static int slabinfo_open(struct inode *inode, struct file *file) in slabinfo_open() argument
Dvmscan.c497 static int may_write_to_inode(struct inode *inode, struct scan_control *sc) in may_write_to_inode() argument
501 if (!inode_write_congested(inode)) in may_write_to_inode()
503 if (inode_to_bdi(inode) == current->backing_dev_info) in may_write_to_inode()
Dkmemleak.c1625 static int kmemleak_open(struct inode *inode, struct file *file) in kmemleak_open() argument
Dvmalloc.c2686 static int vmalloc_open(struct inode *inode, struct file *file) in vmalloc_open() argument
Dslab.c4259 static int slabstats_open(struct inode *inode, struct file *file) in slabstats_open() argument