From: adilger Date: Wed, 22 Oct 2008 19:18:37 +0000 (+0000) Subject: Branch b1_8_gate X-Git-Tag: v1_7_130~1^116 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9333225e3ba1ba9eaea7fbe4cc368860c8e1f27b;p=fs%2Flustre-release.git Branch b1_8_gate Move HAVE_PAGE_CONSTANT checks out of the code, using compat macros. --- 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,