Commit 6314ccb6 authored by Dmitry Eremin's avatar Dmitry Eremin Committed by Greg Kroah-Hartman

staging: lustre: obd: change type of cl_conn_count to size_t

Change type of cl_conn_count to size_t.
Signed-off-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5577
Reviewed-on: http://review.whamcloud.com/13125Reviewed-by: default avatarJames Simmons <uja.ornl@gmail.com>
Reviewed-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6d2f0127
...@@ -202,7 +202,7 @@ struct client_obd { ...@@ -202,7 +202,7 @@ struct client_obd {
struct rw_semaphore cl_sem; struct rw_semaphore cl_sem;
struct obd_uuid cl_target_uuid; struct obd_uuid cl_target_uuid;
struct obd_import *cl_import; /* ptlrpc connection state */ struct obd_import *cl_import; /* ptlrpc connection state */
int cl_conn_count; size_t cl_conn_count;
/* max_mds_easize is purely a performance thing so we don't have to /* max_mds_easize is purely a performance thing so we don't have to
* call obd_size_diskmd() all the time. * call obd_size_diskmd() all the time.
*/ */
......
...@@ -536,7 +536,7 @@ int client_disconnect_export(struct obd_export *exp) ...@@ -536,7 +536,7 @@ int client_disconnect_export(struct obd_export *exp)
imp = cli->cl_import; imp = cli->cl_import;
down_write(&cli->cl_sem); down_write(&cli->cl_sem);
CDEBUG(D_INFO, "disconnect %s - %d\n", obd->obd_name, CDEBUG(D_INFO, "disconnect %s - %zu\n", obd->obd_name,
cli->cl_conn_count); cli->cl_conn_count);
if (!cli->cl_conn_count) { if (!cli->cl_conn_count) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment