From baf66299afc52f5103389184a53ea9ced38fb0ad Mon Sep 17 00:00:00 2001 From: LiuYing Date: Fri, 21 May 2010 08:44:06 +0800 Subject: [PATCH] b=22754 a small bug in LDLM_POOL_PROC_WRITER lprocfs_wr_unit returns "count >= 0" for success i=nathan i=fanyong --- lustre/ldlm/ldlm_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \ } \ -- 1.8.3.1