X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_internal.h;h=3c0107fd29a50b67b65f692596f638e9e995f3e1;hb=272c136099bb27550202f0a69d72bc6f344284a4;hp=6eec20be8d37c21dba3ef9ae628e135627e853bd;hpb=b69b7de30c3977cb69a741099218bc4a81752717;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/llog_internal.h b/lustre/obdclass/llog_internal.h index 6eec20b..3c0107f 100644 --- a/lustre/obdclass/llog_internal.h +++ b/lustre/obdclass/llog_internal.h @@ -27,7 +27,7 @@ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, 2013, Intel Corporation. + * Copyright (c) 2012, 2015, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -47,7 +47,6 @@ struct llog_process_info { int lpi_rc; struct completion lpi_completion; const struct lu_env *lpi_env; - }; struct llog_thread_info { @@ -58,6 +57,9 @@ struct llog_thread_info { loff_t lgi_off; struct llog_logid_rec lgi_logid; struct dt_insert_rec lgi_dt_rec; + struct lu_seq_range lgi_range; + struct llog_cookie lgi_cookie; + char lgi_name[32]; }; extern struct lu_context_key llog_thread_key; @@ -95,4 +97,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