linux24-writepage-antideadlock-20081021

LICENSE IPL10

also make this work for 2.4.x
This commit is contained in:
Derrick Brashear 2008-10-21 14:44:50 +00:00
parent 6d14b44b7c
commit 9bca8ce22a

View File

@ -1901,10 +1901,15 @@ 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);