diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-08-22 10:40:25 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@primarydata.com> | 2014-10-07 14:06:12 -0400 |
commit | e6f5c78930e409f3a6b37f5484313a416359ac7f (patch) | |
tree | e5465ac34a9251be44276f135c8a4f0a5ba4d42e /fs/nfsd/nfs4state.c | |
parent | 0c637be884f5eaa0ee53396ea7686ec0de03d126 (diff) |
locks: plumb a "priv" pointer into the setlease routines
In later patches, we're going to add a new lock_manager_operation to
finish setting up the lease while still holding the i_lock. To do
this, we'll need to pass a little bit of info in the fcntl setlease
case (primarily an fasync structure). Plumb the extra pointer into
there in advance of that.
We declare this pointer as a void ** to make it clear that this is
private info, and that the caller isn't required to set this unless
the lm_setup specifically requires it.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 188cd68aefb6..7c803db2a027 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -686,7 +686,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp) | |||
686 | spin_unlock(&fp->fi_lock); | 686 | spin_unlock(&fp->fi_lock); |
687 | 687 | ||
688 | if (filp) { | 688 | if (filp) { |
689 | vfs_setlease(filp, F_UNLCK, NULL); | 689 | vfs_setlease(filp, F_UNLCK, NULL, NULL); |
690 | fput(filp); | 690 | fput(filp); |
691 | } | 691 | } |
692 | } | 692 | } |
@@ -3792,7 +3792,7 @@ static int nfs4_setlease(struct nfs4_delegation *dp) | |||
3792 | } | 3792 | } |
3793 | fl->fl_file = filp; | 3793 | fl->fl_file = filp; |
3794 | ret = fl; | 3794 | ret = fl; |
3795 | status = vfs_setlease(filp, fl->fl_type, &ret); | 3795 | status = vfs_setlease(filp, fl->fl_type, &fl, NULL); |
3796 | if (status) { | 3796 | if (status) { |
3797 | locks_free_lock(fl); | 3797 | locks_free_lock(fl); |
3798 | goto out_fput; | 3798 | goto out_fput; |