/mm/ |
D | fadvise.c | 40 if (!f.file) in SYSCALL_DEFINE4() 43 inode = file_inode(f.file); in SYSCALL_DEFINE4() 49 mapping = f.file->f_mapping; in SYSCALL_DEFINE4() 86 f.file->f_ra.ra_pages = bdi->ra_pages; in SYSCALL_DEFINE4() 87 spin_lock(&f.file->f_lock); in SYSCALL_DEFINE4() 88 f.file->f_mode &= ~FMODE_RANDOM; in SYSCALL_DEFINE4() 89 spin_unlock(&f.file->f_lock); in SYSCALL_DEFINE4() 92 spin_lock(&f.file->f_lock); in SYSCALL_DEFINE4() 93 f.file->f_mode |= FMODE_RANDOM; in SYSCALL_DEFINE4() 94 spin_unlock(&f.file->f_lock); in SYSCALL_DEFINE4() [all …]
|
D | filemap.c | 1519 static void shrink_readahead_size_eio(struct file *filp, in shrink_readahead_size_eio() 1538 static ssize_t do_generic_file_read(struct file *filp, loff_t *ppos, in do_generic_file_read() 1782 struct file *file = iocb->ki_filp; in generic_file_read_iter() local 1788 struct address_space *mapping = file->f_mapping; in generic_file_read_iter() 1819 file_accessed(file); in generic_file_read_iter() 1824 retval = do_generic_file_read(file, ppos, iter, retval); in generic_file_read_iter() 1839 static int page_cache_read(struct file *file, pgoff_t offset, gfp_t gfp_mask) in page_cache_read() argument 1841 struct address_space *mapping = file->f_mapping; in page_cache_read() 1852 ret = mapping->a_ops->readpage(file, page); in page_cache_read() 1871 struct file *file, in do_sync_mmap_readahead() argument [all …]
|
D | mmap.c | 252 struct file *file, struct address_space *mapping) in __remove_shared_vm_struct() argument 255 atomic_inc(&file_inode(file)->i_writecount); in __remove_shared_vm_struct() 270 struct file *file = vma->vm_file; in unlink_file_vma() local 272 if (file) { in unlink_file_vma() 273 struct address_space *mapping = file->f_mapping; in unlink_file_vma() 275 __remove_shared_vm_struct(vma, file, mapping); in unlink_file_vma() 669 struct file *file; in __vma_link_file() local 671 file = vma->vm_file; in __vma_link_file() 672 if (file) { in __vma_link_file() 673 struct address_space *mapping = file->f_mapping; in __vma_link_file() [all …]
|
D | nommu.c | 915 static int validate_mmap_request(struct file *file, in validate_mmap_request() argument 946 if (file) { in validate_mmap_request() 948 if (!file->f_op->mmap) in validate_mmap_request() 955 if (file->f_op->mmap_capabilities) { in validate_mmap_request() 956 capabilities = file->f_op->mmap_capabilities(file); in validate_mmap_request() 960 switch (file_inode(file)->i_mode & S_IFMT) { in validate_mmap_request() 980 if (!file->f_op->get_unmapped_area) in validate_mmap_request() 982 if (!(file->f_mode & FMODE_CAN_READ)) in validate_mmap_request() 986 if (!(file->f_mode & FMODE_READ)) in validate_mmap_request() 992 !(file->f_mode & FMODE_WRITE)) in validate_mmap_request() [all …]
|
D | shmem.c | 1382 int shmem_lock(struct file *file, int lock, struct user_struct *user) in shmem_lock() argument 1384 struct inode *inode = file_inode(file); in shmem_lock() 1393 mapping_set_unevictable(file->f_mapping); in shmem_lock() 1398 mapping_clear_unevictable(file->f_mapping); in shmem_lock() 1407 static int shmem_mmap(struct file *file, struct vm_area_struct *vma) in shmem_mmap() argument 1409 file_accessed(file); in shmem_mmap() 1493 shmem_write_begin(struct file *file, struct address_space *mapping, in shmem_write_begin() argument 1513 shmem_write_end(struct file *file, struct address_space *mapping, in shmem_write_end() argument 1539 struct file *file = iocb->ki_filp; in shmem_file_read_iter() local 1540 struct inode *inode = file_inode(file); in shmem_file_read_iter() [all …]
|
D | msync.c | 60 struct file *file; in SYSCALL_DEFINE3() local 80 file = vma->vm_file; in SYSCALL_DEFINE3() 85 if ((flags & MS_SYNC) && file && in SYSCALL_DEFINE3() 87 get_file(file); in SYSCALL_DEFINE3() 89 error = vfs_fsync_range(file, fstart, fend, 1); in SYSCALL_DEFINE3() 90 fput(file); in SYSCALL_DEFINE3()
|
D | readahead.c | 111 static int read_pages(struct address_space *mapping, struct file *filp, in read_pages() 152 int __do_page_cache_readahead(struct address_space *mapping, struct file *filp, in __do_page_cache_readahead() 210 int force_page_cache_readahead(struct address_space *mapping, struct file *filp, in force_page_cache_readahead() 369 struct file_ra_state *ra, struct file *filp, in ondemand_readahead() 480 struct file_ra_state *ra, struct file *filp, in page_cache_sync_readahead() 515 struct file_ra_state *ra, struct file *filp, in page_cache_async_readahead() 543 do_readahead(struct address_space *mapping, struct file *filp, in do_readahead() 559 if (f.file) { in SYSCALL_DEFINE3() 560 if (f.file->f_mode & FMODE_READ) { in SYSCALL_DEFINE3() 561 struct address_space *mapping = f.file->f_mapping; in SYSCALL_DEFINE3() [all …]
|
D | madvise.c | 224 struct file *file = vma->vm_file; in madvise_willneed() local 228 if (!file) { in madvise_willneed() 233 if (shmem_mapping(file->f_mapping)) { in madvise_willneed() 235 file->f_mapping); in madvise_willneed() 239 if (!file) in madvise_willneed() 243 if (IS_DAX(file_inode(file))) { in madvise_willneed() 253 force_page_cache_readahead(file->f_mapping, file, start, end - start); in madvise_willneed() 298 struct file *f; in madvise_remove()
|
D | vmstat.c | 1179 static int fragmentation_open(struct inode *inode, struct file *file) in fragmentation_open() argument 1181 return seq_open(file, &fragmentation_op); in fragmentation_open() 1198 static int pagetypeinfo_open(struct inode *inode, struct file *file) in pagetypeinfo_open() argument 1200 return seq_open(file, &pagetypeinfo_op); in pagetypeinfo_open() 1291 static int zoneinfo_open(struct inode *inode, struct file *file) in zoneinfo_open() argument 1293 return seq_open(file, &zoneinfo_op); in zoneinfo_open() 1375 static int vmstat_open(struct inode *inode, struct file *file) in vmstat_open() argument 1377 return seq_open(file, &vmstat_op); in vmstat_open() 1675 static int unusable_open(struct inode *inode, struct file *file) in unusable_open() argument 1677 return seq_open(file, &unusable_op); in unusable_open() [all …]
|
D | swap.c | 493 int file, int rotated) in update_page_reclaim_stat() argument 497 reclaim_stat->recent_scanned[file]++; in update_page_reclaim_stat() 499 reclaim_stat->recent_rotated[file]++; in update_page_reclaim_stat() 506 int file = page_is_file_cache(page); in __activate_page() local 516 update_page_reclaim_stat(lruvec, file, 1); in __activate_page() 759 int lru, file; in lru_deactivate_file_fn() local 773 file = page_is_file_cache(page); in lru_deactivate_file_fn() 799 update_page_reclaim_stat(lruvec, file, 0); in lru_deactivate_file_fn() 997 const int file = 0; in lru_add_page_tail() local 1029 update_page_reclaim_stat(lruvec, file, PageActive(page_tail)); in lru_add_page_tail() [all …]
|
D | util.c | 285 unsigned long vm_mmap_pgoff(struct file *file, unsigned long addr, in vm_mmap_pgoff() argument 293 ret = security_mmap_file(file, prot, flag); in vm_mmap_pgoff() 296 ret = do_mmap_pgoff(file, addr, len, prot, flag, pgoff, in vm_mmap_pgoff() 305 unsigned long vm_mmap(struct file *file, unsigned long addr, in vm_mmap() argument 314 return vm_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); in vm_mmap()
|
D | page_idle.c | 115 static ssize_t page_idle_bitmap_read(struct file *file, struct kobject *kobj, in page_idle_bitmap_read() argument 160 static ssize_t page_idle_bitmap_write(struct file *file, struct kobject *kobj, in page_idle_bitmap_write() argument
|
D | vmscan.c | 1476 static int too_many_isolated(struct zone *zone, int file, in too_many_isolated() argument 1487 if (file) { in too_many_isolated() 1536 int file = is_file_lru(lru); in putback_inactive_pages() local 1538 reclaim_stat->recent_rotated[file] += numpages; in putback_inactive_pages() 1592 int file = is_file_lru(lru); in shrink_inactive_list() local 1596 while (unlikely(too_many_isolated(zone, file, sc))) { in shrink_inactive_list() 1617 __mod_zone_page_state(zone, NR_ISOLATED_ANON + file, nr_taken); in shrink_inactive_list() 1638 reclaim_stat->recent_scanned[file] += nr_taken; in shrink_inactive_list() 1651 __mod_zone_page_state(zone, NR_ISOLATED_ANON + file, -nr_taken); in shrink_inactive_list() 1719 trace_shrink_flags(file)); in shrink_inactive_list() [all …]
|
D | swapfile.c | 1674 struct file *swap_file = sis->swap_file; in destroy_swap_extents() 1761 struct file *swap_file = sis->swap_file; in setup_swap_extents() 1850 struct file *swap_file, *victim; in SYSCALL_DEFINE1() 2000 static unsigned swaps_poll(struct file *file, poll_table *wait) in swaps_poll() argument 2002 struct seq_file *seq = file->private_data; in swaps_poll() 2004 poll_wait(file, &proc_poll_wait, wait); in swaps_poll() 2068 struct file *file; in swap_show() local 2076 file = si->swap_file; in swap_show() 2077 len = seq_file_path(swap, file, " \t\n\\"); in swap_show() 2080 S_ISBLK(file_inode(file)->i_mode) ? in swap_show() [all …]
|
D | slab.h | 146 struct file; 163 ssize_t slabinfo_write(struct file *file, const char __user *buffer,
|
D | internal.h | 46 struct file *filp, pgoff_t offset, unsigned long nr_to_read, 53 struct address_space *mapping, struct file *filp) in ra_submit() 452 extern unsigned long vm_mmap_pgoff(struct file *, unsigned long,
|
D | page_io.c | 132 struct file *swap_file, in generic_swapfile_activate() 255 struct file *swap_file = sis->swap_file; in __swap_writepage() 334 struct file *swap_file = sis->swap_file; in swap_readpage()
|
D | page_owner.c | 166 read_page_owner(struct file *file, char __user *buf, size_t count, loff_t *ppos) in read_page_owner() argument
|
D | kmemleak.c | 1625 static int kmemleak_open(struct inode *inode, struct file *file) in kmemleak_open() argument 1627 return seq_open(file, &kmemleak_seq_ops); in kmemleak_open() 1694 static ssize_t kmemleak_write(struct file *file, const char __user *user_buf, in kmemleak_write() argument
|
D | backing-dev.c | 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()
|
D | slab_common.c | 1164 static int slabinfo_open(struct inode *inode, struct file *file) in slabinfo_open() argument 1166 return seq_open(file, &slabinfo_op); in slabinfo_open()
|
D | memcontrol.c | 3888 static void memcg_event_ptable_queue_proc(struct file *file, in memcg_event_ptable_queue_proc() argument 3943 if (!efile.file) { in memcg_write_event_control() 3948 event->eventfd = eventfd_ctx_fileget(efile.file); in memcg_write_event_control() 3955 if (!cfile.file) { in memcg_write_event_control() 3962 ret = inode_permission(file_inode(cfile.file), MAY_READ); in memcg_write_event_control() 3974 name = cfile.file->f_path.dentry->d_name.name; in memcg_write_event_control() 3998 cfile_css = css_tryget_online_from_dir(cfile.file->f_path.dentry->d_parent, in memcg_write_event_control() 4012 efile.file->f_op->poll(efile.file, &event->pt); in memcg_write_event_control()
|
D | memblock.c | 1700 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()
|
D | zsmalloc.c | 553 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()
|
D | vmalloc.c | 2686 static int vmalloc_open(struct inode *inode, struct file *file) in vmalloc_open() argument 2689 return seq_open_private(file, &vmalloc_op, in vmalloc_open() 2692 return seq_open(file, &vmalloc_op); in vmalloc_open()
|