|
@@ -1628,7 +1628,7 @@ generic_add_lease(struct file *filp, long arg, struct file_lock **flp, void **pr
|
|
{
|
|
{
|
|
struct file_lock *fl, *my_fl = NULL, *lease;
|
|
struct file_lock *fl, *my_fl = NULL, *lease;
|
|
struct dentry *dentry = filp->f_path.dentry;
|
|
struct dentry *dentry = filp->f_path.dentry;
|
|
- struct inode *inode = dentry->d_inode;
|
|
|
|
|
|
+ struct inode *inode = file_inode(filp);
|
|
struct file_lock_context *ctx;
|
|
struct file_lock_context *ctx;
|
|
bool is_deleg = (*flp)->fl_flags & FL_DELEG;
|
|
bool is_deleg = (*flp)->fl_flags & FL_DELEG;
|
|
int error;
|
|
int error;
|