From 9d4f34bd084eaae203e061e6896c423e1c4c9f38 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 16 May 2011 15:16:30 -0500 Subject: [PATCH] viced: Don't VTakeOffline_r without glock We don't have the volume glock, so don't call _r functions. Reviewed-on: http://gerrit.openafs.org/4669 Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit ef0ac2fbb026385f2306189230c2cff8706dff06) Change-Id: I3d7c2ca8a514d50c01d4830640e806cefac32af1 Reviewed-on: http://gerrit.openafs.org/6299 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/viced/afsfileprocs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 9238654b1..314b3df6e 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -1351,7 +1351,7 @@ DeleteTarget(Vnode * parentptr, Volume * volptr, Vnode ** targetptr, return (EINVAL); if (CheckLength(volptr, parentptr, -1)) { - VTakeOffline_r(volptr); + VTakeOffline(volptr); return VSALVAGE; } @@ -1768,7 +1768,7 @@ Alloc_NewVnode(Vnode * parentptr, DirHandle * dir, Volume * volptr, if (CheckLength(volptr, parentptr, -1)) { VAdjustDiskUsage(&temp, volptr, -BlocksPreallocatedForVnode, 0); - VTakeOffline_r(volptr); + VTakeOffline(volptr); return VSALVAGE; } -- 2.39.5