From: Chas Williams Date: Wed, 11 Jan 2006 21:38:30 +0000 (+0000) Subject: STABLE14-linux-clean-up-stupidity-20060111 X-Git-Tag: openafs-stable-1_4_1-rc5~32 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a74a50e10aecad39c112036391d0b8bfa5220ba8;p=packages%2Fo%2Fopenafs.git STABLE14-linux-clean-up-stupidity-20060111 get some of an inadvertant misapplied patch, and get rid of a redundant check (cherry picked from commit 3e8b96cfc4596c3e9c6c3802c1bdca1784f86271) --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index e088fb06c..468a7e5e8 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -1372,9 +1372,7 @@ afs_linux_writepage_sync(struct inode *ip, struct page *pp, ip->i_size = vcp->m.Length; ip->i_blocks = ((vcp->m.Length + 1023) >> 10) << 1; - if (!code - && afs_stats_cmperf.cacheCurrDirtyChunks > - afs_stats_cmperf.cacheMaxDirtyChunks) { + if (!code) { struct vrequest treq; ObtainWriteLock(&vcp->lock, 533); @@ -1477,15 +1475,6 @@ afs_linux_updatepage(struct file *fp, struct page *pp, unsigned long offset, ip->i_size = vcp->m.Length; ip->i_blocks = ((vcp->m.Length + 1023) >> 10) << 1; - if (!code) { - struct vrequest treq; - - ObtainWriteLock(&vcp->lock, 533); - vcp->m.Date = osi_Time(); /* set modification time */ - if (!afs_InitReq(&treq, credp)) - code = afs_DoPartialWrite(vcp, &treq); - ReleaseWriteLock(&vcp->lock); - } if (!code) { struct vrequest treq;