Whamcloud - gitweb
branch: HEAD
[fs/lustre-release.git] / lustre / quota / quota_internal.h
index fa645b8..2bc82c0 100644 (file)
@@ -219,7 +219,7 @@ static inline int client_quota_recoverable_error(int rc)
 
 static inline int client_quota_should_resend(int resend, struct client_obd *cli)
 {
-        return atomic_read(&cli->cl_quota_resends) ?
+        return (atomic_read(&cli->cl_quota_resends) >= 0) ?
                 atomic_read(&cli->cl_quota_resends) > resend : 1;
 }