From e67e4405b713840dc4b4fec2337462948c55aa4f Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 18 Feb 2010 12:21:45 -0600 Subject: [PATCH] Do not rely on vol header for V*VolumeHandles_r VCloseVolumeHandles_r and VReleaseVolumeHandles_r were using V_id to get the id of the volume; just use vp->hashid so we can call these even if we lack a header. Change-Id: I0f0bc0ae82a7b86135aebe194c79a223a6f25094 Reviewed-on: http://gerrit.openafs.org/1348 Tested-by: Andrew Deason Reviewed-by: Alistair Ferguson Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/vol/volume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vol/volume.c b/src/vol/volume.c index 94417ef59..304e2442c 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -3508,7 +3508,7 @@ VCloseVolumeHandles_r(Volume * vp) * DFlushVolume outside of vol_glock_mutex... * * VCloseVnodeFiles_r drops the glock internally */ - DFlushVolume(V_id(vp)); + DFlushVolume(vp->hashid); VCloseVnodeFiles_r(vp); #ifdef AFS_DEMAND_ATTACH_FS @@ -3552,7 +3552,7 @@ VReleaseVolumeHandles_r(Volume * vp) /* XXX need to investigate whether we can perform * DFlushVolume outside of vol_glock_mutex... */ - DFlushVolume(V_id(vp)); + DFlushVolume(vp->hashid); VReleaseVnodeFiles_r(vp); /* releases the glock internally */ -- 2.39.5