MALI: utgard: .gitignore: ignore the build generation config
[firefly-linux-kernel-4.4.55.git] / fs / locks.c
index 6333263b7bc86a975f1d9fd5487276a15991bfb4..8eddae23e10bed47430704cfd897b8e3a491f88b 100644 (file)
@@ -1602,7 +1602,7 @@ generic_add_lease(struct file *filp, long arg, struct file_lock **flp, void **pr
 {
        struct file_lock *fl, *my_fl = NULL, *lease;
        struct dentry *dentry = filp->f_path.dentry;
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode = file_inode(filp);
        struct file_lock_context *ctx;
        bool is_deleg = (*flp)->fl_flags & FL_DELEG;
        int error;