nfs4: Add not null assertions for Inode::fOpenState and fDelegation

This commit is contained in:
Pawel Dziepak
2013-01-16 09:52:10 +01:00
parent 9c1d983eab
commit 1c6f502549
@@ -917,6 +917,8 @@ Inode::RecallReadDelegation()
void
Inode::ReturnDelegation(bool truncate)
{
ASSERT(fDelegation != NULL);
fDelegation->GiveUp(truncate);
fMetaCache.UnlockValid();
@@ -934,6 +936,8 @@ Inode::ReturnDelegation(bool truncate)
void
Inode::ReleaseOpenState()
{
ASSERT(fOpenState != NULL);
if (fOpenState->ReleaseReference() == 1)
fOpenState = NULL;
}