Lines Matching refs:swap_file

2168 		struct file *swap_file = sis->swap_file;  in destroy_swap_extents()  local
2169 struct address_space *mapping = swap_file->f_mapping; in destroy_swap_extents()
2173 mapping->a_ops->swap_deactivate(swap_file); in destroy_swap_extents()
2253 struct file *swap_file = sis->swap_file; in setup_swap_extents() local
2254 struct address_space *mapping = swap_file->f_mapping; in setup_swap_extents()
2265 ret = mapping->a_ops->swap_activate(sis, swap_file, span); in setup_swap_extents()
2277 return generic_swapfile_activate(sis, swap_file, span); in setup_swap_extents()
2287 bdev = p->swap_file->f_inode->i_sb->s_bdev; in swap_node()
2393 struct file *swap_file, *victim; in SYSCALL_DEFINE1() local
2418 if (p->swap_file->f_mapping == mapping) { in SYSCALL_DEFINE1()
2509 swap_file = p->swap_file; in SYSCALL_DEFINE1()
2511 p->swap_file = NULL; in SYSCALL_DEFINE1()
2543 filp_close(swap_file, NULL); in SYSCALL_DEFINE1()
2642 file = si->swap_file; in swap_show()
2982 struct file *swap_file = NULL; in SYSCALL_DEFINE2() local
3018 swap_file = file_open_name(name, O_RDWR|O_LARGEFILE, 0); in SYSCALL_DEFINE2()
3019 if (IS_ERR(swap_file)) { in SYSCALL_DEFINE2()
3020 error = PTR_ERR(swap_file); in SYSCALL_DEFINE2()
3021 swap_file = NULL; in SYSCALL_DEFINE2()
3025 p->swap_file = swap_file; in SYSCALL_DEFINE2()
3026 mapping = swap_file->f_mapping; in SYSCALL_DEFINE2()
3027 dentry = swap_file->f_path.dentry; in SYSCALL_DEFINE2()
3051 page = read_mapping_page(mapping, 0, swap_file); in SYSCALL_DEFINE2()
3217 p->swap_file = NULL; in SYSCALL_DEFINE2()
3224 if (swap_file) in SYSCALL_DEFINE2()
3225 filp_close(swap_file, NULL); in SYSCALL_DEFINE2()
3394 return page_swap_info(&folio->page)->swap_file->f_mapping; in swapcache_mapping()