Lines Matching refs:old_delegation
436 struct nfs_delegation *delegation, *old_delegation; in nfs_inode_set_delegation() local
454 old_delegation = rcu_dereference_protected(nfsi->delegation, in nfs_inode_set_delegation()
456 if (old_delegation == NULL) in nfs_inode_set_delegation()
459 if (nfs4_stateid_match_other(&old_delegation->stateid, in nfs_inode_set_delegation()
461 spin_lock(&old_delegation->lock); in nfs_inode_set_delegation()
462 nfs_update_inplace_delegation(old_delegation, in nfs_inode_set_delegation()
464 spin_unlock(&old_delegation->lock); in nfs_inode_set_delegation()
467 if (!test_bit(NFS_DELEGATION_REVOKED, &old_delegation->flags)) { in nfs_inode_set_delegation()
477 if (delegation->type == old_delegation->type || in nfs_inode_set_delegation()
484 &old_delegation->flags)) in nfs_inode_set_delegation()
487 freeme = nfs_detach_delegation_locked(nfsi, old_delegation, clp); in nfs_inode_set_delegation()