From 0a56f2b4967cf9bbe9ae842b13db2673fa334f79 Mon Sep 17 00:00:00 2001 From: shadow Date: Fri, 24 Oct 2008 05:04:15 +0000 Subject: [PATCH] Kill extra argument for llog_connect, and don't access to ld_tgt_count without protection. Branch b1_8_gate b=16693 i=umka i=tappro --- lustre/ptlrpc/llog_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/ptlrpc/llog_net.c b/lustre/ptlrpc/llog_net.c index 2a79e1d..87e3566 100644 --- a/lustre/ptlrpc/llog_net.c +++ b/lustre/ptlrpc/llog_net.c @@ -63,7 +63,7 @@ #include #ifdef __KERNEL__ -int llog_origin_connect(struct llog_ctxt *ctxt, int count, +int llog_origin_connect(struct llog_ctxt *ctxt, struct llog_logid *logid, struct llog_gen *gen, struct obd_uuid *uuid) { @@ -153,7 +153,7 @@ int llog_handle_connect(struct ptlrpc_request *req) sizeof(*req_body)); ctxt = llog_get_context(obd, req_body->lgdc_ctxt_idx); - rc = llog_connect(ctxt, 1, &req_body->lgdc_logid, + rc = llog_connect(ctxt, &req_body->lgdc_logid, &req_body->lgdc_gen, NULL); llog_ctxt_put(ctxt); @@ -184,7 +184,7 @@ EXPORT_SYMBOL(llog_receptor_accept); #else /* !__KERNEL__ */ -int llog_origin_connect(struct llog_ctxt *ctxt, int count, +int llog_origin_connect(struct llog_ctxt *ctxt, struct llog_logid *logid, struct llog_gen *gen, struct obd_uuid *uuid) { -- 1.8.3.1