diff --git a/fs/locks.c b/fs/locks.c index 6a132cd4fa57e4ff2b8dc97bf595702acd64a303..2e0fa661e4234d2ab9a5d3fae52af6882fcb2db3 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1493,8 +1493,7 @@ EXPORT_SYMBOL_GPL(vfs_setlease); int fcntl_setlease(unsigned int fd, struct file *filp, long arg) { struct file_lock fl, *flp = &fl; - struct dentry *dentry = filp->f_path.dentry; - struct inode *inode = dentry->d_inode; + struct inode *inode = filp->f_path.dentry->d_inode; int error; locks_init_lock(&fl);