Re: [PATCH v2 07/17] nfsd: don't keep a pointer to the lease in nfs4_file

2014-09-06 Thread Jeff Layton
On Fri, 5 Sep 2014 17:40:58 -0400 "J. Bruce Fields" wrote: > On Thu, Sep 04, 2014 at 08:38:33AM -0400, Jeff Layton wrote: > > Now that we don't need to pass in an actual lease pointer to > > vfs_setlease on unlock, we can stop tracking a pointer to the lease in > > the nfs4_file. > > > > Switch

Re: [PATCH v2 07/17] nfsd: don't keep a pointer to the lease in nfs4_file

2014-09-05 Thread J. Bruce Fields
On Thu, Sep 04, 2014 at 08:38:33AM -0400, Jeff Layton wrote: > Now that we don't need to pass in an actual lease pointer to > vfs_setlease on unlock, we can stop tracking a pointer to the lease in > the nfs4_file. > > Switch all of the places that check the fi_lease to check fi_deleg_file > instea

[PATCH v2 07/17] nfsd: don't keep a pointer to the lease in nfs4_file

2014-09-04 Thread Jeff Layton
Now that we don't need to pass in an actual lease pointer to vfs_setlease on unlock, we can stop tracking a pointer to the lease in the nfs4_file. Switch all of the places that check the fi_lease to check fi_deleg_file instead. We always set that at the same time so it will have the same semantics