Whamcloud - gitweb
Branch b1_8_gate
authoradilger <adilger>
Wed, 22 Oct 2008 19:18:37 +0000 (19:18 +0000)
committeradilger <adilger>
Wed, 22 Oct 2008 19:18:37 +0000 (19:18 +0000)
Move HAVE_PAGE_CONSTANT checks out of the code, using compat macros.

lustre/obdfilter/filter_internal.h

index 959e078..4d3dd30 100644 (file)
@@ -87,6 +87,12 @@ struct filter_mod_data {
 /* Client cache seconds */
 #define FILTER_FMD_MAX_AGE_DEFAULT ((obd_timeout + 10) * HZ)
 
+#ifndef HAVE_PAGE_CONSTANT
+#define mapping_cap_page_constant_write(mapping) 0
+#define SetPageConstant(page) do {} while (0)
+#define ClearPageConstant(page) do {} while (0)
+#endif
+
 struct filter_mod_data *filter_fmd_find(struct obd_export *exp,
                                         obd_id objid, obd_gr group);
 struct filter_mod_data *filter_fmd_get(struct obd_export *exp,