From: tianzy Date: Tue, 15 Sep 2009 05:19:39 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_270~61 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=56ebff3af4e4d621a912453b7fa0076f67a36115;p=fs%2Flustre-release.git Branch HEAD fix a compile error when "configure --disable-quota" b=20695 i=yong.fan i=panda --- 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)