commit | 0b26693c56cc4beae2f913e737b15c12bc2b5b97 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@primarydata.com> | Fri Jul 25 07:34:25 2014 -0400 |
committer | J. Bruce Fields <bfields@redhat.com> | Tue Jul 29 14:49:56 2014 -0400 |
tree | bcaa584ee0e1b9c88d7e6bd04f24547c1668cc99 | |
parent | 4cf59221c7cb46ce40e17bcfeddb64d759071440 [diff] |
nfsd: clean up nfs4_set_delegation Move the alloc_init_deleg call into nfs4_set_delegation and change the function to return a pointer to the delegation or an IS_ERR return. This allows us to skip allocating a delegation if the file has already experienced a lease conflict. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>