From 9333225e3ba1ba9eaea7fbe4cc368860c8e1f27b Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 22 Oct 2008 19:18:37 +0000 Subject: [PATCH] Branch b1_8_gate Move HAVE_PAGE_CONSTANT checks out of the code, using compat macros. --- lustre/obdfilter/filter_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/obdfilter/filter_internal.h b/lustre/obdfilter/filter_internal.h index 959e078..4d3dd30 100644 --- a/lustre/obdfilter/filter_internal.h +++ b/lustre/obdfilter/filter_internal.h @@ -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, -- 1.8.3.1