salvager: Don't lie about locked-ness to namei_SLC
authorAndrew Deason <adeason@sinenomine.net>
Thu, 29 Aug 2013 21:14:23 +0000 (16:14 -0500)
committerD Brashear <shadow@your-file-system.com>
Mon, 1 Dec 2014 16:54:05 +0000 (11:54 -0500)
We have not locked the linktable with a prior call to
namei_GetLinkCount. So don't claim that we did.

Change-Id: I43adf92b60a0e46b90ae624e4713747585d12c67
Reviewed-on: http://gerrit.openafs.org/10198
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: D Brashear <shadow@your-file-system.com>

src/vol/vol-salvage.c

index b1931ba..03945ff 100644 (file)
@@ -2038,7 +2038,7 @@ DoSalvageVolumeGroup(struct SalvInfo *salvinfo, struct InodeSummary *isp, int nV
                for (i = 0; i < nVols; i++) {
                    ip = allInodes + isp[i].index;
                    for (j = isp[i].nSpecialInodes; j < isp[i].nInodes; j++) {
-                       namei_SetLinkCount(fdP, ip[j].inodeNumber, 1, 1);
+                       namei_SetLinkCount(fdP, ip[j].inodeNumber, 1, 0);
                        ip[j].linkCount = 1;
                    }
                }