static long zvol_compat_ioctl_by_inode(struct file *file, unsigned int cmd, unsigned long arg) { return zvol_compat_ioctl(file->f_dentry->d_inode->i_bdev, file->f_mode, cmd, arg); }
static long zvol_compat_ioctl_by_inode(struct file *file, unsigned int cmd, unsigned long arg) { if (file == NULL) return (SET_ERROR(-EINVAL)); return (zvol_compat_ioctl(file->f_dentry->d_inode->i_bdev, file->f_mode, cmd, arg)); }