X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Fobd_class.h;h=6c97a050f0c049920513fef13df92199a57f3fae;hb=ff17cc7e0282d9b1522810e0c5d12171c4d46a2d;hp=90a521b07187935b732147667311b658ac7b2016;hpb=93d22db85666a137dae01035742ce47dcc67c442;p=fs%2Flustre-release.git diff --git a/lustre/include/linux/obd_class.h b/lustre/include/linux/obd_class.h index 90a521b..6c97a05 100644 --- a/lustre/include/linux/obd_class.h +++ b/lustre/include/linux/obd_class.h @@ -828,16 +828,15 @@ static inline int obd_preprw(int cmd, struct obd_export *exp, struct obdo *oa, static inline int obd_commitrw(int cmd, struct obd_export *exp, struct obdo *oa, int objcount, struct obd_ioobj *obj, int niocount, struct niobuf_local *local, - struct obd_trans_info *oti) + struct obd_trans_info *oti, int rc) { - int rc; ENTRY; OBD_CHECK_OP(exp->exp_obd, commitrw, -EOPNOTSUPP); OBD_COUNTER_INCREMENT(exp->exp_obd, commitrw); rc = OBP(exp->exp_obd, commitrw)(cmd, exp, oa, objcount, obj, niocount, - local, oti); + local, oti, rc); RETURN(rc); } @@ -970,12 +969,14 @@ static inline int obd_unpin(struct obd_export *exp, return(rc); } -static inline void obd_invalidate_import(struct obd_device *obd, - struct obd_import *imp) + +static inline void obd_import_event(struct obd_device *obd, + struct obd_import *imp, + enum obd_import_event event) { - if (obd->obd_set_up && OBP(obd, invalidate_import)) { - OBD_COUNTER_INCREMENT(obd, invalidate_import); - OBP(obd, invalidate_import)(obd, imp); + if (obd->obd_set_up && OBP(obd, import_event)) { + OBD_COUNTER_INCREMENT(obd, import_event); + OBP(obd, import_event)(obd, imp, event); } }