new helper: file_inode(file)
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / fs / configfs / dir.c
index 712b10f64c709ff8a27d423aa7a5186f80aec04f..90d222f11e36d4112f469eb45f4c056309390173 100644 (file)
@@ -1625,7 +1625,7 @@ static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence)
                        if (offset >= 0)
                                break;
                default:
-                       mutex_unlock(&file->f_path.dentry->d_inode->i_mutex);
+                       mutex_unlock(&file_inode(file)->i_mutex);
                        return -EINVAL;
        }
        if (offset != file->f_pos) {