From: Nickolai Zeldovich Date: Thu, 9 May 2002 23:07:12 +0000 (+0000) Subject: Avoid kernel panic when dynroot and memcache are used simultaneously. X-Git-Tag: openafs-stable-1_2_4~6 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5d12cc8e59fc9be52e98dbfcfc0bf1761e7a5557;p=packages%2Fo%2Fopenafs.git Avoid kernel panic when dynroot and memcache are used simultaneously. (cherry picked from commit 81a3f0068f3488b7fb20fb9d6b7441f64f5b61e0) --- diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index f1839c31e..51fbf981e 100644 --- a/src/afs/afs_dcache.c +++ b/src/afs/afs_dcache.c @@ -1895,7 +1895,7 @@ struct dcache *afs_GetDCache(avc, abyte, areq, aoffset, alen, aflags) if (size > dynrootLen) size = dynrootLen; if (size < 0) size = 0; - code = afs_osi_Write(file, -1, dynrootDir, size); + code = afs_CFileWrite(file, 0, dynrootDir, size); afs_PutDynroot(); if (code == size)