mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
linux24-writepage-antideadlock-20081021
LICENSE IPL10 also make this work for 2.4.x
This commit is contained in:
parent
6d14b44b7c
commit
9bca8ce22a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user