]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-clean-up-stupidity-20060111
authorChas Williams <chas@cmf.nrl.navy.mil>
Wed, 11 Jan 2006 21:38:30 +0000 (21:38 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 11 Jan 2006 21:38:30 +0000 (21:38 +0000)
get some of an inadvertant misapplied patch, and get rid of a redundant check

(cherry picked from commit 3e8b96cfc4596c3e9c6c3802c1bdca1784f86271)

src/afs/LINUX/osi_vnodeops.c

index e088fb06c2965c31d3cc1a44d27daf802bdaef89..468a7e5e80bb73bad1a82ac72ff66741e4413d6c 100644 (file)
@@ -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;