X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Fobd_class.h;h=71635822b1bf0df2b81c44de9e1cc11666336807;hp=f211b1d4e34dcde2f77c547ca22bce0d7dfddea7;hb=8cad1d968ad4efee46d08aee1e6a6266d4713e84;hpb=0b54f38a7eb79ece762f12e121bfe26814a2e655 diff --git a/lustre/include/obd_class.h b/lustre/include/obd_class.h index f211b1d..7163582 100644 --- a/lustre/include/obd_class.h +++ b/lustre/include/obd_class.h @@ -1259,6 +1259,20 @@ static inline int obd_sync(struct obd_export *exp, struct obdo *oa, RETURN(rc); } +static inline int obd_sync_fs(struct obd_device *obd, struct obd_info *oinfo, + int wait) +{ + int rc; + ENTRY; + + OBD_CHECK_DT_OP(obd, sync_fs, -EOPNOTSUPP); + OBD_COUNTER_INCREMENT(obd, sync); + + rc = OBP(obd, sync_fs)(obd, oinfo, wait); + + RETURN(rc); +} + static inline int obd_punch_rqset(struct obd_export *exp, struct obd_info *oinfo, struct obd_trans_info *oti)