nfsd: fix leaked file lock with nfs exported overlayfs
[sfrench/cifs-2.6.git] / fs / lockd / clntproc.c
index a2c0dfc6fdc0017c2e9f41d3dc4d6dd0d6b4fce0..d20b92f271c2341bbd323de93d76da0c65d904d7 100644 (file)
@@ -128,7 +128,7 @@ static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl)
        char *nodename = req->a_host->h_rpcclnt->cl_nodename;
 
        nlmclnt_next_cookie(&argp->cookie);
-       memcpy(&lock->fh, NFS_FH(file_inode(fl->fl_file)), sizeof(struct nfs_fh));
+       memcpy(&lock->fh, NFS_FH(locks_inode(fl->fl_file)), sizeof(struct nfs_fh));
        lock->caller  = nodename;
        lock->oh.data = req->a_owner;
        lock->oh.len  = snprintf(req->a_owner, sizeof(req->a_owner), "%u@%s",