locks: plumb a "priv" pointer into the setlease routines
[jlayton/linux.git] / fs / nfsd / nfs4state.c
index 188cd68aefb6c964ea89bc72ab6701c29a4ce59e..7c803db2a02769288584a01c820aaed962d71fe6 100644 (file)
@@ -686,7 +686,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp)
        spin_unlock(&fp->fi_lock);
 
        if (filp) {
-               vfs_setlease(filp, F_UNLCK, NULL);
+               vfs_setlease(filp, F_UNLCK, NULL, NULL);
                fput(filp);
        }
 }
@@ -3792,7 +3792,7 @@ static int nfs4_setlease(struct nfs4_delegation *dp)
        }
        fl->fl_file = filp;
        ret = fl;
-       status = vfs_setlease(filp, fl->fl_type, &ret);
+       status = vfs_setlease(filp, fl->fl_type, &fl, NULL);
        if (status) {
                locks_free_lock(fl);
                goto out_fput;