From: Simon Wilkinson Date: Tue, 13 Jan 2009 19:37:28 +0000 (+0000) Subject: STABLE14-linux-truncate-cleanup-20090113 X-Git-Tag: openafs-stable-1_4_9pre1~65 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ab309974de303999a6224092525470ffda56f7cd;p=packages%2Fo%2Fopenafs.git STABLE14-linux-truncate-cleanup-20090113 LICENSE IPL10 fix the patch to actually be applicable (cherry picked from commit e6d60f58e2a6b7ac9964cfb1ec753decd5d6ed91) --- diff --git a/src/afs/VNOPS/afs_vnop_attrs.c b/src/afs/VNOPS/afs_vnop_attrs.c index 3d12537f6..7ad6c1f68 100644 --- a/src/afs/VNOPS/afs_vnop_attrs.c +++ b/src/afs/VNOPS/afs_vnop_attrs.c @@ -530,7 +530,7 @@ afs_setattr(OSI_VC_DECL(avc), register struct vattr *attrs, ObtainWriteLock(&avc->lock, 128); avc->states |= CDirty; code = afs_TruncateAllSegments(avc, tsize, &treq, acred); -#ifdef AFS_LINUX_26_ENV +#ifdef AFS_LINUX26_ENV /* We must update the Linux kernel's idea of file size as soon as * possible, to avoid racing with delayed writepages delivered by * pdflush */