In AFSLocateNameEntry, move the InsertNextEntry to name array
call from before the directory entry DirOpenReferenceCount is
incremented to afterwards. This permits InsertNextEntry() to
consistently assert based upon the DirOpenReferenceCount value.
Change-Id: I3c65f5360650739f6d75b7e657ae5cdea4c14aa4
Reviewed-on: http://gerrit.openafs.org/8517
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
ASSERT( pCurrentVolume->VolumeReferenceCount > 1);
- //
- // The name array stores both the mount point and the target.
- // Insert the target.
- //
-
- AFSInsertNextElement( pNameArray,
- pCurrentVolume->DirectoryCB);
-
//
// We want to restart processing here on the new parent ...
// Deref and ref count the entries
NULL,
lCount);
+ //
+ // The name array stores both the mount point and the target.
+ // Insert the target.
+ //
+
+ AFSInsertNextElement( pNameArray,
+ pDirEntry);
+
pParentDirEntry = NULL;
//