From 355fc1274b484a65e96be1e0289f5aa453c6474d Mon Sep 17 00:00:00 2001 From: Andrew Perepechko Date: Thu, 15 Jul 2010 18:49:08 +0400 Subject: [PATCH 1/1] b=16890 a build fix for --disable-quota i=ZhiYong Tian i=Yong Fan attachments 30599 and 30600 --- lustre/include/lustre_quota.h | 2 +- lustre/mdt/mdt_handler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/include/lustre_quota.h b/lustre/include/lustre_quota.h index 3b59537..82071a3 100644 --- a/lustre/include/lustre_quota.h +++ b/lustre/include/lustre_quota.h @@ -446,7 +446,7 @@ struct lustre_quota_ctxt { #else -#define LL_DQUOT_OFF(sb, remount) do {} while(0) +#define LL_DQUOT_OFF(sb) do {} while(0) struct lustre_quota_info { }; diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index b584ed4..aec469b 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -5531,8 +5531,8 @@ static int mdt_iocontrol(unsigned int cmd, struct obd_export *exp, int len, int mdt_postrecov(const struct lu_env *env, struct mdt_device *mdt) { struct lu_device *ld = md2lu_dev(mdt->mdt_child); - struct obd_device *obd = mdt2obd_dev(mdt); #ifdef HAVE_QUOTA_SUPPORT + struct obd_device *obd = mdt2obd_dev(mdt); struct md_device *next = mdt->mdt_child; #endif int rc; -- 1.8.3.1