nfs4: Add not null assertions for Inode::fOpenState and fDelegation
This commit is contained in:
@@ -917,6 +917,8 @@ Inode::RecallReadDelegation()
|
|||||||
void
|
void
|
||||||
Inode::ReturnDelegation(bool truncate)
|
Inode::ReturnDelegation(bool truncate)
|
||||||
{
|
{
|
||||||
|
ASSERT(fDelegation != NULL);
|
||||||
|
|
||||||
fDelegation->GiveUp(truncate);
|
fDelegation->GiveUp(truncate);
|
||||||
|
|
||||||
fMetaCache.UnlockValid();
|
fMetaCache.UnlockValid();
|
||||||
@@ -934,6 +936,8 @@ Inode::ReturnDelegation(bool truncate)
|
|||||||
void
|
void
|
||||||
Inode::ReleaseOpenState()
|
Inode::ReleaseOpenState()
|
||||||
{
|
{
|
||||||
|
ASSERT(fOpenState != NULL);
|
||||||
|
|
||||||
if (fOpenState->ReleaseReference() == 1)
|
if (fOpenState->ReleaseReference() == 1)
|
||||||
fOpenState = NULL;
|
fOpenState = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user