From: Andrew Perepechko Date: Thu, 15 Jul 2010 14:49:08 +0000 (+0400) Subject: b=16890 a build fix for --disable-quota X-Git-Tag: 2.0.50.0~34 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=355fc1274b484a65e96be1e0289f5aa453c6474d b=16890 a build fix for --disable-quota i=ZhiYong Tian i=Yong Fan attachments 30599 and 30600 --- 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;