diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index 6802f8186a..eaed932d74 100644 --- a/src/afs/afs_dcache.c +++ b/src/afs/afs_dcache.c @@ -2414,28 +2414,6 @@ afs_GetDCache(register struct vcache *avc, afs_size_t abyte, code = afs_CFileWrite(file, 0, dynrootDir, size); afs_PutDynroot(); - if (code == size) - code = 0; - else - code = -1; - - tdc->validPos = Position + size; - afs_CFileTruncate(file, size); /* prune it */ - } else if (afs_IsDynrootMount(avc)) { - char *dynrootDir; - int dynrootLen; - - afs_GetDynrootMount(&dynrootDir, &dynrootLen, &tsmall->OutStatus); - - dynrootDir += Position; - dynrootLen -= Position; - if (size > dynrootLen) - size = dynrootLen; - if (size < 0) - size = 0; - code = afs_CFileWrite(file, 0, dynrootDir, size); - afs_PutDynroot(); - if (code == size) code = 0; else