From 56ebff3af4e4d621a912453b7fa0076f67a36115 Mon Sep 17 00:00:00 2001 From: tianzy Date: Tue, 15 Sep 2009 05:19:39 +0000 Subject: [PATCH] Branch HEAD fix a compile error when "configure --disable-quota" b=20695 i=yong.fan i=panda --- lustre/mdt/mdt_lproc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/mdt/mdt_lproc.c b/lustre/mdt/mdt_lproc.c index 23624be..d20bec9 100644 --- a/lustre/mdt/mdt_lproc.c +++ b/lustre/mdt/mdt_lproc.c @@ -655,6 +655,7 @@ static int lprocfs_rd_mdt_som(char *page, char **start, off_t off, mdt->mdt_som_conf ? "en" : "dis"); } +#ifdef HAVE_QUOTA_SUPPORT static int mdt_quota_off(struct mdt_device *mdt) { struct md_device *next = mdt->mdt_child; @@ -667,6 +668,12 @@ static int mdt_quota_off(struct mdt_device *mdt) lu_env_fini(&env); return rc; } +#else +static int mdt_quota_off(struct mdt_device *mdt) +{ + return 0; +} +#endif static int lprocfs_wr_mdt_som(struct file *file, const char *buffer, unsigned long count, void *data) -- 1.8.3.1