X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2Fafs_pioctl.c;h=83f159c95b907441bd000c6b751705f74221ed42;hp=200a00ed062edb2a6dd59078488776b4da4c268a;hb=1a672914ab050811c99b6307c657630ab9b5c8ee;hpb=12177ba6fffaf8a693dd8c8e9445d5e7725ae743 diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 200a00e..83f159c 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -3546,7 +3546,7 @@ DECL_PIOCTL(PFlushVolumeData) for (i = 0; i < afs_cacheFiles; i++) { if (!(afs_indexFlags[i] & IFEverUsed)) continue; /* never had any data */ - tdc = afs_GetDSlot(i); + tdc = afs_GetValidDSlot(i); if (tdc->refCount <= 1) { /* too high, in use by running sys call */ ReleaseReadLock(&tdc->tlock); if (tdc->f.fid.Fid.Volume == volume && tdc->f.fid.Cell == cell) {