From: Björn Torkelsson Date: Mon, 19 Dec 2005 03:27:21 +0000 (+0000) Subject: linux-writepage-rename-20051218 X-Git-Tag: openafs-devel-1_5_0~147 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=37147a406e5a44d762c976773d7f3bd01154460a;p=packages%2Fo%2Fopenafs.git linux-writepage-rename-20051218 The ocfs2 patch renames WRITEPAGE_ACTIVE to AOP_WRITEPAGE_ACTIVE, and Ubuntu has applied that patch to their version of the kernel. Allow for either. --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 21a76083a..e088fb06c 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -1412,7 +1412,11 @@ afs_linux_writepage(struct page *pp) #if defined(AFS_LINUX26_ENV) if (PageReclaim(pp)) { +# if defined(WRITEPAGE_ACTIVATE) return WRITEPAGE_ACTIVATE; +# else + return AOP_WRITEPAGE_ACTIVATE; +# endif } #else if (PageLaunder(pp)) {