Windows: buf_DirtyBuffersExist uses fileHashp not allp list pointer

buf_DirtyBuffersExist() should use the fileHashp pointer and not
the allp list pointer in order to walk the hash table list.

LICENSE MIT

Change-Id: Ie043647cbeec479abe0d96b3b5405130f2ba1aac
Reviewed-on: http://gerrit.openafs.org/828
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Jeffrey Altman 2009-11-15 00:11:24 -05:00 committed by Jeffrey Altman
parent 3f3a76c0ca
commit 87b1b84981

View File

@ -2000,7 +2000,7 @@ long buf_DirtyBuffersExist(cm_fid_t *fidp)
i = BUF_FILEHASH(fidp); i = BUF_FILEHASH(fidp);
for (bp = cm_data.buf_fileHashTablepp[i]; bp; bp=bp->allp, bcount++) { for (bp = cm_data.buf_fileHashTablepp[i]; bp; bp=bp->fileHashp, bcount++) {
if (!cm_FidCmp(fidp, &bp->fid) && (bp->flags & CM_BUF_DIRTY)) if (!cm_FidCmp(fidp, &bp->fid) && (bp->flags & CM_BUF_DIRTY))
return 1; return 1;
} }