From 9d50b935e36ef7831f5172f1ac8c8dee52d61710 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 20 Sep 2001 06:08:14 +0000 Subject: [PATCH] undo-linux-call-afs-dopartialwrite-20010920 scrap this approach --- src/afs/LINUX/osi_vnodeops.c | 4 ++++ src/afs/VNOPS/afs_vnop_write.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 48895106e..1227272bf 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -134,6 +134,10 @@ static ssize_t afs_linux_write(struct file *fp, const char *buf, size_t count, ObtainWriteLock(&vcp->lock, 530); vcp->m.Date = osi_Time(); /* set modification time */ afs_FakeClose(vcp, credp); + if (code>=0) + code2 = afs_DoPartialWrite(vcp, &treq); + if (code2 && code >=0) + code = (ssize_t) -code2; ReleaseWriteLock(&vcp->lock); afs_Trace4(afs_iclSetp, CM_TRACE_WRITEOP, ICL_TYPE_POINTER, vcp, diff --git a/src/afs/VNOPS/afs_vnop_write.c b/src/afs/VNOPS/afs_vnop_write.c index 8f6789fe1..55ad6f1fd 100644 --- a/src/afs/VNOPS/afs_vnop_write.c +++ b/src/afs/VNOPS/afs_vnop_write.c @@ -280,7 +280,7 @@ afs_MemWrite(avc, auio, aio, acred, noLock) if (filePos > avc->m.Length) avc->m.Length = filePos; #endif -#if (!defined(AFS_VM_RDWR_ENV)||defined(AFS_LINUX20_ENV)) +#ifndef AFS_VM_RDWR_ENV /* * If write is implemented via VM, afs_DoPartialWrite() is called from * the high-level write op. -- 2.39.5