From 3330b9d17b2767318eef6222aceabdee47bbc703 Mon Sep 17 00:00:00 2001 From: Tom Keiser Date: Wed, 30 Jun 2010 18:40:20 -0400 Subject: [PATCH] DAFS: fix VOL_HDR_IN_LRU state bit tracking For the case where the cached vp->header can be re-used by GetVolumeHeader(), we have not been re-setting the VOL_HDR_IN_LRU state bit. Although this has not affected correctness (this bit is merely used to aid in debugging), we should be resetting it in all relevant cases... Change-Id: I2ad2b8c5070470beb067efdcda6f76f6b72c006c Reviewed-on: http://gerrit.openafs.org/2308 Reviewed-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/vol/volume.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vol/volume.c b/src/vol/volume.c index ffd76aa..c28f167 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -7309,6 +7309,9 @@ GetVolumeHeader(register Volume * vp) hd = vp->header; queue_Remove(hd); assert(hd->back == vp); +#ifdef AFS_DEMAND_ATTACH_FS + V_attachFlags(vp) &= ~(VOL_HDR_IN_LRU); +#endif } else { /* we need to grab a new element off the LRU */ if (queue_IsNotEmpty(&volume_hdr_LRU)) { -- 1.9.4