From: Chas Williams Date: Tue, 30 Jul 2002 22:35:53 +0000 (+0000) Subject: STABLE12-linux-enable-partial-writes-20020730 X-Git-Tag: openafs-stable-1_2_6~18 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3f2c9b44567934cb8470b421bbef6953e6eb0325;p=packages%2Fo%2Fopenafs.git STABLE12-linux-enable-partial-writes-20020730 backport of linux-enable-partial-writes-and-prefetch-20020730 which does not include prefetch and dcache locking changes (dcache locking isn't in 1.2 but prefetch should be pulled up for 1.2.7) --- diff --git a/src/afs/VNOPS/afs_vnop_write.c b/src/afs/VNOPS/afs_vnop_write.c index 0d0b13159..a2b926b98 100644 --- a/src/afs/VNOPS/afs_vnop_write.c +++ b/src/afs/VNOPS/afs_vnop_write.c @@ -283,7 +283,7 @@ afs_MemWrite(avc, auio, aio, acred, noLock) if (filePos > avc->m.Length) avc->m.Length = filePos; #endif -#ifndef AFS_VM_RDWR_ENV +#if !defined(AFS_VM_RDWR_ENV) || defined(AFS_LINUX22_ENV) /* * If write is implemented via VM, afs_DoPartialWrite() is called from * the high-level write op. @@ -580,7 +580,7 @@ afs_UFSWrite(avc, auio, aio, acred, noLock) } #endif osi_UFSClose(tfile); -#ifndef AFS_VM_RDWR_ENV +#if !defined(AFS_VM_RDWR_ENV) || defined(AFS_LINUX22_ENV) /* * If write is implemented via VM, afs_DoPartialWrite() is called from * the high-level write op.