NFSv4: Further clean-ups of delegation stateid validation
Change the name to reflect what we're really doing: testing two stateids for whether or not they match according the the rules in RFC3530 and RFC5661. Move the code from callback_proc.c to nfs4proc.c Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
8e663f0e5f
commit
36281caa83
4 changed files with 27 additions and 28 deletions
|
@ -556,7 +556,7 @@ int nfs_async_inode_return_delegation(struct inode *inode,
|
|||
rcu_read_lock();
|
||||
delegation = rcu_dereference(NFS_I(inode)->delegation);
|
||||
|
||||
if (!clp->cl_mvops->validate_stateid(delegation, stateid)) {
|
||||
if (!clp->cl_mvops->match_stateid(&delegation->stateid, stateid)) {
|
||||
rcu_read_unlock();
|
||||
return -ENOENT;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue