Whamcloud - gitweb
b=22754 a small bug in LDLM_POOL_PROC_WRITER
authorLiuYing <Emoly.Liu@sun.com>
Wed, 2 Jun 2010 10:29:46 +0000 (18:29 +0800)
committerRobert Read <robert.read@oracle.com>
Wed, 2 Jun 2010 18:44:05 +0000 (11:44 -0700)
lprocfs_wr_unit returns "count >= 0" for success

i=nathan
i=fanyong

lustre/ldlm/ldlm_internal.h

index 2316e9d..4de2d85 100644 (file)
@@ -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;                                          \
                 }                                                           \