Searched refs:swap_inode (Results 1 – 2 of 2) sorted by relevance
874 struct inode * swap_inode; in sys_swapon() local925 swap_inode = nd.dentry->d_inode; in sys_swapon()928 if (S_ISBLK(swap_inode->i_mode)) { in sys_swapon()929 kdev_t dev = swap_inode->i_rdev; in sys_swapon()941 bd_acquire(swap_inode); in sys_swapon()942 bdev = swap_inode->i_bdev; in sys_swapon()943 de = devfs_get_handle_from_inode(swap_inode); in sys_swapon()960 } else if (S_ISREG(swap_inode->i_mode)) in sys_swapon()961 swapfilesize = swap_inode->i_size >> PAGE_SHIFT; in sys_swapon()970 if (swap_inode->i_mapping == q->swap_file->d_inode->i_mapping) in sys_swapon()
504 struct inode swap_inode; in swap_init() local553 swap_inode.i_rdev = p->swap_device; in swap_init()554 stram_open( &swap_inode, MAGIC_FILE_P ); in swap_init()