From: LiuYing Date: Wed, 2 Jun 2010 10:29:46 +0000 (+0800) Subject: b=22754 a small bug in LDLM_POOL_PROC_WRITER X-Git-Tag: v1_10_0_44~37 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b7398c4d0b47cb0d31c25de4df5a22a022d193ce 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 2316e9d..4de2d85 100644 --- a/lustre/ldlm/ldlm_internal.h +++ b/lustre/ldlm/ldlm_internal.h @@ -229,7 +229,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; \ } \