Lines Matching refs:swap_file
741 if (p->swap_file == nd.dentry || in sys_swapoff()
788 blkdev_put(p->swap_file->d_inode->i_bdev, BDEV_SWAP); in sys_swapoff()
794 nd.dentry = p->swap_file; in sys_swapoff()
796 p->swap_file = NULL; in sys_swapoff()
826 char * path = d_path(ptr->swap_file, ptr->swap_vfsmnt, in get_swaparea_info()
903 p->swap_file = NULL; in sys_swapon()
923 p->swap_file = nd.dentry; in sys_swapon()
968 if (i == type || !q->swap_file) in sys_swapon()
970 if (swap_inode->i_mapping == q->swap_file->d_inode->i_mapping) in sys_swapon()
1113 nd.dentry = p->swap_file; in sys_swapon()
1115 p->swap_file = NULL; in sys_swapon()
1228 } else if (p->swap_file) { in get_swaphandle_info()
1229 *swapf = p->swap_file->d_inode; in get_swaphandle_info()