mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
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:
parent
3f3a76c0ca
commit
87b1b84981
@ -2000,7 +2000,7 @@ long buf_DirtyBuffersExist(cm_fid_t *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))
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user