X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_internal.h;h=28332457337e7227f19460523a5aeeb6df3d826d;hp=6eec20be8d37c21dba3ef9ae628e135627e853bd;hb=0f22e4c098b1f7885ef509bbfc346b3e8905b28d;hpb=7e41c11a83b3f70d59df7684e4aff9d58cbb632f diff --git a/lustre/obdclass/llog_internal.h b/lustre/obdclass/llog_internal.h index 6eec20b..2833245 100644 --- a/lustre/obdclass/llog_internal.h +++ b/lustre/obdclass/llog_internal.h @@ -95,4 +95,9 @@ int llog_process_or_fork(const struct lu_env *env, llog_cb_t cb, void *data, void *catdata, bool fork); int llog_cat_cleanup(const struct lu_env *env, struct llog_handle *cathandle, struct llog_handle *loghandle, int index); + +static inline struct llog_rec_hdr *llog_rec_hdr_next(struct llog_rec_hdr *rec) +{ + return (struct llog_rec_hdr *)((char *)rec + rec->lrh_len); +} #endif