Whamcloud - gitweb
LU-507 check_write_rcs() return -EPROTO instead of -ENOSPC
[fs/lustre-release.git] / lustre / osc / osc_request.c
index 44e51c1..a7cc433 100644 (file)
@@ -1197,7 +1197,7 @@ static int check_write_rcs(struct ptlrpc_request *req,
 
         /* return error if any niobuf was in error */
         for (i = 0; i < niocount; i++) {
-                if (remote_rcs[i] < 0)
+                if ((int)remote_rcs[i] < 0)
                         return(remote_rcs[i]);
 
                 if (remote_rcs[i] != 0) {