static int zvol_ioctl_by_inode(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) { if (file == NULL || inode == NULL) return -EINVAL; return zvol_ioctl(inode->i_bdev, file->f_mode, cmd, arg); }
static int zvol_compat_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg) { return (zvol_ioctl(bdev, mode, cmd, arg)); }
static int zvol_ioctl_by_inode(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) { return zvol_ioctl(inode->i_bdev, file->f_mode, cmd, arg); }