[OpenAFS] 1.4.11 and RHEL3: No [AOP_]WRITEPAGE_ACTIVATE

Axel Thimm Axel.Thimm@ATrpms.net
Mon, 24 Aug 2009 00:21:09 +0300


--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

1.4.11 on RHEL3 bails out due to no [AOP_]WRITEPAGE_ACTIVATE being
available:

@@ -1658,7 +1680,12 @@
   do_it:
     status =3D afs_linux_writepage_sync(inode, pp, 0, offset);
     SetPageUptodate(pp);
-    UnlockPage(pp);
+#if defined(WRITEPAGE_ACTIVATE)
+    if ( status !=3D WRITEPAGE_ACTIVATE )
+#else
+    if ( status !=3D AOP_WRITEPAGE_ACTIVATE )
+#endif
+       UnlockPage(pp);
     if (status =3D=3D offset)
        return 0;
     else
--=20
Axel.Thimm at ATrpms.net

--tThc/1wpZn/ma/RB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkqRssEACgkQQBVS1GOamfG+8gCfTNhvwHnncDlCrgjmaAR14/m9
OyYAoI4qwA7R2dODVaAuWsKFgzC3GR1q
=1NMS
-----END PGP SIGNATURE-----

--tThc/1wpZn/ma/RB--