Whamcloud - gitweb
LU-5417 lustre: fix comparison between signed and unsigned
[fs/lustre-release.git] / lustre / osc / osc_request.c
index fe8c77b..cd84b54 100644 (file)
@@ -832,7 +832,7 @@ static void osc_announce_cached(struct client_obd *cli, struct obdo *oa,
                       cli->cl_dirty_pages, cli->cl_dirty_max_pages);
                oa->o_undirty = 0;
        } else {
-               long max_in_flight = (cli->cl_max_pages_per_rpc <<
+               unsigned long max_in_flight = (cli->cl_max_pages_per_rpc <<
                                      PAGE_CACHE_SHIFT) *
                                     (cli->cl_max_rpcs_in_flight + 1);
                oa->o_undirty = max(cli->cl_dirty_max_pages << PAGE_CACHE_SHIFT,
@@ -2045,7 +2045,7 @@ int osc_build_rpc(const struct lu_env *env, struct client_obd *cli,
        }
        client_obd_list_unlock(&cli->cl_loi_list_lock);
 
-       DEBUG_REQ(D_INODE, req, "%d pages, aa %p. now %dr/%dw in flight",
+       DEBUG_REQ(D_INODE, req, "%d pages, aa %p. now %ur/%uw in flight",
                  page_count, aa, cli->cl_r_in_flight,
                  cli->cl_w_in_flight);