From: LiuYing Date: Fri, 21 May 2010 00:44:06 +0000 (+0800) Subject: b=22754 a small bug in LDLM_POOL_PROC_WRITER X-Git-Tag: v1_8_3_52~7 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=baf66299afc52f5103389184a53ea9ced38fb0ad;p=fs%2Flustre-release.git b=22754 a small bug in LDLM_POOL_PROC_WRITER lprocfs_wr_unit returns "count >= 0" for success i=nathan i=fanyong --- diff --git a/lustre/ldlm/ldlm_internal.h b/lustre/ldlm/ldlm_internal.h index d62520a..e068ba5 100644 --- a/lustre/ldlm/ldlm_internal.h +++ b/lustre/ldlm/ldlm_internal.h @@ -225,7 +225,7 @@ typedef enum ldlm_policy_res ldlm_policy_res_t; int rc; \ \ rc = lprocfs_wr_uint(file, buffer, count, &tmp); \ - if (rc) { \ + if (rc < 0) { \ CERROR("Can't parse user input, rc = %d\n", rc); \ return rc; \ } \