linux24-writepage-antideadlock-20081021
authorDerrick Brashear <shadow@dementia.org>
Tue, 21 Oct 2008 14:44:50 +0000 (14:44 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 21 Oct 2008 14:44:50 +0000 (14:44 +0000)
LICENSE IPL10

also make this work for 2.4.x

src/afs/LINUX/osi_vnodeops.c

index 7638a5c..804770d 100644 (file)
@@ -1901,11 +1901,16 @@ afs_linux_writepage_sync(struct inode *ip, struct page *pp,
        maybe_unlock_kernel();
        crfree(credp);
        kunmap(pp);
+#ifdef AFS_LINUX26_ENV
 #if defined(WRITEPAGE_ACTIVATE)
        return WRITEPAGE_ACTIVATE;
 #else
        return AOP_WRITEPAGE_ACTIVATE;
 #endif
+#else
+       /* should mark it dirty? */
+       return(0); 
+#endif
     }
     ReleaseReadLock(&vcp->lock);