X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fquota%2Fquota_internal.h;h=e3c88e6e56ec20b00764e443524281c6dc4e7dd2;hp=fa645b833c01372b8eff29adda7db9b0a3183060;hb=60e3010700ce940ff2d737ef1e7cc6114151b404;hpb=e7f3c2955a426bbe3e39b32208056b9ab8667190 diff --git a/lustre/quota/quota_internal.h b/lustre/quota/quota_internal.h index fa645b8..e3c88e6 100644 --- a/lustre/quota/quota_internal.h +++ b/lustre/quota/quota_internal.h @@ -87,7 +87,7 @@ #define LQS_DEBUG(lqs, fmt, arg...) \ CDEBUG(D_QUOTA, "lqs(%p) id(%u) flag(%lu) type(%c) bunit(%lu) " \ "btune(%lu) iunit(%lu) itune(%lu) lqs_bwrite_pending(%lu) " \ - "lqs_iwrite_pending(%lu) ino_rec("LPD64") blk_rec("LPD64" ) " \ + "lqs_iwrite_pending(%lu) ino_rec(%lld) blk_rec(%lld) " \ "refcount(%d): " \ fmt, lqs, lqs->lqs_id, lqs->lqs_flags, \ LQS_IS_GRP(lqs) ? 'g' : 'u', \ @@ -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; }