vol: set correct bit in bitmap after VGrowBitmap
authorMarc Dionne <marc.c.dionne@gmail.com>
Fri, 20 Jul 2012 02:23:20 +0000 (22:23 -0400)
committerDerrick Brashear <shadow@dementix.org>
Sun, 22 Jul 2012 12:22:53 +0000 (05:22 -0700)
Set the correct bit after the bitmap is expanded with VGrowBitmap
so we don't allocate it twice and trigger a salvage.

Change-Id: Iee307a0913d4402c2d5a32d493ff489b35778811
Reviewed-on: http://gerrit.openafs.org/7793
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/vol/volume.c

index d61df21..0ef7f81 100644 (file)
@@ -6339,7 +6339,7 @@ VAllocBitmapEntry_r(Error * ec, Volume * vp,
     }
     /* No bit map entry--must grow bitmap */
     VGrowBitmap(index);
-    bp = index->bitmap;
+    bp = index->bitmap + index->bitmapOffset;
     *bp = 1;
     ret = index->bitmapOffset * 8;
 #ifdef AFS_DEMAND_ATTACH_FS