X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flov%2Flov_qos.c;h=527620a976738ea90d78147a83def8d3b4b3d2e0;hb=9f3469f1d00099b9301ba2b90c846c924ce7796b;hp=3560d067c333615c7b2c8238e7aabeb0c1520e2f;hpb=2b1697699531bd7ef9a7f1ccfb77c3fc7618e243;p=fs%2Flustre-release.git diff --git a/lustre/lov/lov_qos.c b/lustre/lov/lov_qos.c index 3560d06..527620a 100644 --- a/lustre/lov/lov_qos.c +++ b/lustre/lov/lov_qos.c @@ -34,9 +34,6 @@ * Lustre is a trademark of Sun Microsystems, Inc. */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif #define DEBUG_SUBSYSTEM S_LOV #ifdef __KERNEL__ @@ -523,7 +520,7 @@ static int lov_check_and_create_object(struct lov_obd *lov, int ost_idx, if (stripe >= lsm->lsm_stripe_count) { req->rq_idx = ost_idx; - rc = obd_create(lov->lov_tgts[ost_idx]->ltd_exp, + rc = obd_create(NULL, lov->lov_tgts[ost_idx]->ltd_exp, req->rq_oi.oi_oa, &req->rq_oi.oi_md, oti); } @@ -1201,7 +1198,7 @@ void qos_statfs_update(struct obd_device *obd, __u64 max_age, int wait) if (!set) GOTO(out_failed, rc = -ENOMEM); - rc = obd_statfs_async(obd, oinfo, max_age, set); + rc = obd_statfs_async(obd->obd_self_export, oinfo, max_age, set); if (rc || cfs_list_empty(&set->set_requests)) { if (rc) CWARN("statfs failed with %d\n", rc);