From d9eeca7c032d7f9290eb747c0058737fa2afb2ad Mon Sep 17 00:00:00 2001
From: fanyong <fanyong>
Date: Fri, 28 Nov 2008 13:12:41 +0000
Subject: [PATCH] Branch HEAD i=Johann Lombardi i=ZhiYong Tian

quota_check shall return an error when a target goes offline
---
 lustre/quota/quota_check.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lustre/quota/quota_check.c b/lustre/quota/quota_check.c
index 97061cba2a..62fc1f0cfb 100644
--- a/lustre/quota/quota_check.c
+++ b/lustre/quota/quota_check.c
@@ -258,7 +258,7 @@ int lmv_quota_check(struct obd_device *unused, struct obd_export *exp,
                 }
 
                 err = obd_quotacheck(tgt->ltd_exp, oqctl);
-                if (err && tgt->ltd_active && !rc)
+                if (err && !rc)
                         rc = err;
         }
 
@@ -282,7 +282,7 @@ int lov_quota_check(struct obd_device *unused, struct obd_export *exp,
                 }
 
                 err = obd_quotacheck(lov->lov_tgts[i]->ltd_exp, oqctl);
-                if (err && lov->lov_tgts[i]->ltd_active && !rc)
+                if (err && !rc)
                         rc = err;
         }
 
-- 
GitLab