From: Andrew Deason Date: Thu, 29 Aug 2013 21:14:23 +0000 (-0500) Subject: salvager: Don't lie about locked-ness to namei_SLC X-Git-Tag: upstream/1.8.0_pre1^2~462 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bd6859861d7331569081d03450db80a0b476875d;p=packages%2Fo%2Fopenafs.git salvager: Don't lie about locked-ness to namei_SLC 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 Reviewed-by: D Brashear --- diff --git a/src/vol/vol-salvage.c b/src/vol/vol-salvage.c index b1931bade..03945ff30 100644 --- a/src/vol/vol-salvage.c +++ b/src/vol/vol-salvage.c @@ -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; } }