From 7dee3a0db71465c39bbee5b1b73e4a22d77b13bc Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 11 Jul 2002 22:53:34 +0000 Subject: [PATCH] Fix statfs for new ptlrpc interface in head. --- lustre/osc/osc_request.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 1.8.3.1