X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_request.c;h=76a046fa56910262a0e88f702d246c9624b9337e;hp=2ba487bd8218f90cb10100a96df016a98fd1fe91;hb=e62f0a3c5b9db5e048de54454ccfded1c44963d8;hpb=9b25c27a3e1ffb1781d6c4a80564c2217020de83 diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 2ba487b..76a046f 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -943,7 +943,7 @@ static int osc_shrink_grant_interpret(const struct lu_env *env, LASSERT(body); osc_update_grant(cli, body); out: - OBD_FREE_PTR(oa); + OBDO_FREE(oa); return rc; } @@ -2229,9 +2229,6 @@ static int brw_interpret(const struct lu_env *env, obd_count i; for (i = 0; i < aa->aa_page_count; i++) osc_release_write_grant(aa->aa_cli, aa->aa_ppga[i], 1); - - if (aa->aa_oa->o_flags & OBD_FL_TEMPORARY) - OBDO_FREE(aa->aa_oa); } osc_wake_cache_waiters(cli); osc_check_rpcs(env, cli); @@ -4089,7 +4086,7 @@ static int osc_set_info_async(struct obd_export *exp, obd_count keylen, CLASSERT(sizeof(*aa) <= sizeof(req->rq_async_args)); aa = ptlrpc_req_async_args(req); - OBD_ALLOC_PTR(oa); + OBDO_ALLOC(oa); if (!oa) { ptlrpc_req_finished(req); RETURN(-ENOMEM);