From: adilger Date: Thu, 11 Jul 2002 22:53:34 +0000 (+0000) Subject: Fix statfs for new ptlrpc interface in head. X-Git-Tag: 0.5.0~7 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=7dee3a0db71465c39bbee5b1b73e4a22d77b13bc;p=fs%2Flustre-release.git Fix statfs for new ptlrpc interface in head. --- diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 3846d60..dbc875b 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -825,13 +825,15 @@ static int osc_statfs(struct lustre_handle *conn, struct statfs *sfs) { struct ptlrpc_request *request; struct ptlrpc_client *cl; + struct osc_obd *osc = &class_conn2obd(conn)->u.osc; struct ptlrpc_connection *connection; struct obd_statfs *osfs; int rc, size = sizeof(*osfs); ENTRY; osc_con2cl(conn, &cl, &connection); - request = ptlrpc_prep_req(cl, connection, OST_STATFS, 0, NULL, NULL); + request = ptlrpc_prep_req2(cl, connection, &osc->osc_connh, + OST_STATFS, 0, NULL, NULL); if (!request) RETURN(-ENOMEM);