/mm/ |
D | filemap.c | 1444 static void shrink_readahead_size_eio(struct file *filp, in shrink_readahead_size_eio() 1463 static ssize_t do_generic_file_read(struct file *filp, loff_t *ppos, in do_generic_file_read() 1693 struct file *file = iocb->ki_filp; in generic_file_read_iter() local 1699 if (file->f_flags & O_DIRECT) { in generic_file_read_iter() 1700 struct address_space *mapping = file->f_mapping; in generic_file_read_iter() 1729 file_accessed(file); in generic_file_read_iter() 1734 retval = do_generic_file_read(file, ppos, iter, retval); in generic_file_read_iter() 1749 static int page_cache_read(struct file *file, pgoff_t offset) in page_cache_read() argument 1751 struct address_space *mapping = file->f_mapping; in page_cache_read() 1762 ret = mapping->a_ops->readpage(file, page); in page_cache_read() [all …]
|
D | fadvise.c | 39 if (!f.file) in SYSCALL_DEFINE4() 42 if (S_ISFIFO(file_inode(f.file)->i_mode)) { in SYSCALL_DEFINE4() 47 mapping = f.file->f_mapping; in SYSCALL_DEFINE4() 80 f.file->f_ra.ra_pages = bdi->ra_pages; in SYSCALL_DEFINE4() 81 spin_lock(&f.file->f_lock); in SYSCALL_DEFINE4() 82 f.file->f_mode &= ~FMODE_RANDOM; in SYSCALL_DEFINE4() 83 spin_unlock(&f.file->f_lock); in SYSCALL_DEFINE4() 86 spin_lock(&f.file->f_lock); in SYSCALL_DEFINE4() 87 f.file->f_mode |= FMODE_RANDOM; in SYSCALL_DEFINE4() 88 spin_unlock(&f.file->f_lock); in SYSCALL_DEFINE4() [all …]
|
D | mmap.c | 250 struct file *file, struct address_space *mapping) in __remove_shared_vm_struct() argument 253 atomic_inc(&file_inode(file)->i_writecount); in __remove_shared_vm_struct() 271 struct file *file = vma->vm_file; in unlink_file_vma() local 273 if (file) { in unlink_file_vma() 274 struct address_space *mapping = file->f_mapping; in unlink_file_vma() 276 __remove_shared_vm_struct(vma, file, mapping); in unlink_file_vma() 670 struct file *file; in __vma_link_file() local 672 file = vma->vm_file; in __vma_link_file() 673 if (file) { in __vma_link_file() 674 struct address_space *mapping = file->f_mapping; in __vma_link_file() [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() 90 error = vfs_fsync(file, 1); in SYSCALL_DEFINE3() 92 error = vfs_fsync_range(file, fstart, fend, 1); in SYSCALL_DEFINE3() 93 fput(file); in SYSCALL_DEFINE3()
|
D | nommu.c | 913 static int validate_mmap_request(struct file *file, in validate_mmap_request() argument 948 if (file) { in validate_mmap_request() 953 if (!file->f_op->mmap) in validate_mmap_request() 960 mapping = file->f_mapping; in validate_mmap_request() 962 mapping = file_inode(file)->i_mapping; in validate_mmap_request() 971 switch (file_inode(file)->i_mode & S_IFMT) { in validate_mmap_request() 991 if (!file->f_op->get_unmapped_area) in validate_mmap_request() 993 if (!file->f_op->read) in validate_mmap_request() 997 if (!(file->f_mode & FMODE_READ)) in validate_mmap_request() 1003 !(file->f_mode & FMODE_WRITE)) in validate_mmap_request() [all …]
|
D | shmem.c | 1371 int shmem_lock(struct file *file, int lock, struct user_struct *user) in shmem_lock() argument 1373 struct inode *inode = file_inode(file); in shmem_lock() 1382 mapping_set_unevictable(file->f_mapping); in shmem_lock() 1387 mapping_clear_unevictable(file->f_mapping); in shmem_lock() 1396 static int shmem_mmap(struct file *file, struct vm_area_struct *vma) in shmem_mmap() argument 1398 file_accessed(file); in shmem_mmap() 1478 shmem_write_begin(struct file *file, struct address_space *mapping, in shmem_write_begin() argument 1498 shmem_write_end(struct file *file, struct address_space *mapping, in shmem_write_end() argument 1524 struct file *file = iocb->ki_filp; in shmem_file_read_iter() local 1525 struct inode *inode = file_inode(file); in shmem_file_read_iter() [all …]
|
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() 379 struct file_ra_state *ra, struct file *filp, in ondemand_readahead() 490 struct file_ra_state *ra, struct file *filp, in page_cache_sync_readahead() 525 struct file_ra_state *ra, struct file *filp, in page_cache_async_readahead() 553 do_readahead(struct address_space *mapping, struct file *filp, in do_readahead() 569 if (f.file) { in SYSCALL_DEFINE3() 570 if (f.file->f_mode & FMODE_READ) { in SYSCALL_DEFINE3() 571 struct address_space *mapping = f.file->f_mapping; in SYSCALL_DEFINE3() [all …]
|
D | madvise.c | 223 struct file *file = vma->vm_file; in madvise_willneed() local 227 if (!file || mapping_cap_swap_backed(file->f_mapping)) { in madvise_willneed() 228 if (!file) in madvise_willneed() 232 file->f_mapping); in madvise_willneed() 237 if (!file) in madvise_willneed() 240 if (file->f_mapping->a_ops->get_xip_mem) { in madvise_willneed() 250 force_page_cache_readahead(file->f_mapping, file, start, end - start); in madvise_willneed() 302 struct file *f; in madvise_remove()
|
D | filemap_xip.c | 54 struct file *filp, in do_xip_mapping_read() 147 xip_file_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) in xip_file_read() 224 struct file *file = vma->vm_file; in xip_file_fault() local 225 struct address_space *mapping = file->f_mapping; in xip_file_fault() 312 int xip_file_mmap(struct file * file, struct vm_area_struct * vma) in xip_file_mmap() argument 314 BUG_ON(!file->f_mapping->a_ops->get_xip_mem); in xip_file_mmap() 316 file_accessed(file); in xip_file_mmap() 324 __xip_file_write(struct file *filp, const char __user *buf, in __xip_file_write() 398 xip_file_write(struct file *filp, const char __user *buf, size_t len, in xip_file_write()
|
D | vmstat.c | 1050 static int fragmentation_open(struct inode *inode, struct file *file) in fragmentation_open() argument 1052 return seq_open(file, &fragmentation_op); in fragmentation_open() 1069 static int pagetypeinfo_open(struct inode *inode, struct file *file) in pagetypeinfo_open() argument 1071 return seq_open(file, &pagetypeinfo_op); in pagetypeinfo_open() 1162 static int zoneinfo_open(struct inode *inode, struct file *file) in zoneinfo_open() argument 1164 return seq_open(file, &zoneinfo_op); in zoneinfo_open() 1244 static int vmstat_open(struct inode *inode, struct file *file) in vmstat_open() argument 1246 return seq_open(file, &vmstat_op); in vmstat_open() 1529 static int unusable_open(struct inode *inode, struct file *file) in unusable_open() argument 1531 return seq_open(file, &unusable_op); in unusable_open() [all …]
|
D | util.c | 254 unsigned long vm_mmap_pgoff(struct file *file, unsigned long addr, in vm_mmap_pgoff() argument 262 ret = security_mmap_file(file, prot, flag); in vm_mmap_pgoff() 265 ret = do_mmap_pgoff(file, addr, len, prot, flag, pgoff, in vm_mmap_pgoff() 274 unsigned long vm_mmap(struct file *file, unsigned long addr, in vm_mmap() argument 283 return vm_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); in vm_mmap()
|
D | swap.c | 485 int file, int rotated) in update_page_reclaim_stat() argument 489 reclaim_stat->recent_scanned[file]++; in update_page_reclaim_stat() 491 reclaim_stat->recent_rotated[file]++; in update_page_reclaim_stat() 498 int file = page_is_file_cache(page); in __activate_page() local 508 update_page_reclaim_stat(lruvec, file, 1); in __activate_page() 748 int lru, file; in lru_deactivate_file_fn() local 762 file = page_is_file_cache(page); in lru_deactivate_file_fn() 788 update_page_reclaim_stat(lruvec, file, 0); in lru_deactivate_file_fn() 986 const int file = 0; in lru_add_page_tail() local 1018 update_page_reclaim_stat(lruvec, file, PageActive(page_tail)); in lru_add_page_tail() [all …]
|
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() 1408 static int too_many_isolated(struct zone *zone, int file, in too_many_isolated() argument 1419 if (file) { in too_many_isolated() 1468 int file = is_file_lru(lru); in putback_inactive_pages() local 1470 reclaim_stat->recent_rotated[file] += numpages; in putback_inactive_pages() 1524 int file = is_file_lru(lru); in shrink_inactive_list() local 1528 while (unlikely(too_many_isolated(zone, file, sc))) { in shrink_inactive_list() 1549 __mod_zone_page_state(zone, NR_ISOLATED_ANON + file, nr_taken); in shrink_inactive_list() 1570 reclaim_stat->recent_scanned[file] += nr_taken; in shrink_inactive_list() [all …]
|
D | fremap.c | 227 struct file *file = get_file(vma->vm_file); in SYSCALL_DEFINE5() local 231 addr = mmap_region(file, start, size, vm_flags, pgoff); in SYSCALL_DEFINE5() 232 fput(file); in SYSCALL_DEFINE5()
|
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_path(swap, &file->f_path, " \t\n\\"); in swap_show() 2080 S_ISBLK(file_inode(file)->i_mode) ? in swap_show() [all …]
|
D | slab.h | 147 struct file; 164 ssize_t slabinfo_write(struct file *file, const char __user *buffer,
|
D | internal.h | 26 struct file *filp, pgoff_t offset, unsigned long nr_to_read, 33 struct address_space *mapping, struct file *filp) in ra_submit() 392 extern unsigned long vm_mmap_pgoff(struct file *, unsigned long,
|
D | page_io.c | 137 struct file *swap_file, in generic_swapfile_activate() 265 struct file *swap_file = sis->swap_file; in __swap_writepage() 351 struct file *swap_file = sis->swap_file; in swap_readpage()
|
D | backing-dev.c | 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 | kmemleak.c | 1584 static int kmemleak_open(struct inode *inode, struct file *file) in kmemleak_open() argument 1586 return seq_open(file, &kmemleak_seq_ops); in kmemleak_open() 1653 static ssize_t kmemleak_write(struct file *file, const char __user *user_buf, in kmemleak_write() argument
|
D | slab_common.c | 935 static int slabinfo_open(struct inode *inode, struct file *file) in slabinfo_open() argument 937 return seq_open(file, &slabinfo_op); in slabinfo_open()
|
D | memcontrol.c | 4982 static void memcg_event_ptable_queue_proc(struct file *file, in memcg_event_ptable_queue_proc() argument 5037 if (!efile.file) { in memcg_write_event_control() 5042 event->eventfd = eventfd_ctx_fileget(efile.file); in memcg_write_event_control() 5049 if (!cfile.file) { in memcg_write_event_control() 5056 ret = inode_permission(file_inode(cfile.file), MAY_READ); in memcg_write_event_control() 5068 name = cfile.file->f_dentry->d_name.name; in memcg_write_event_control() 5092 cfile_css = css_tryget_online_from_dir(cfile.file->f_dentry->d_parent, in memcg_write_event_control() 5106 efile.file->f_op->poll(efile.file, &event->pt); in memcg_write_event_control()
|
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 | vmalloc.c | 2647 static int vmalloc_open(struct inode *inode, struct file *file) in vmalloc_open() argument 2650 return seq_open_private(file, &vmalloc_op, in vmalloc_open() 2653 return seq_open(file, &vmalloc_op); in vmalloc_open()
|