X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_swab.c;h=18ebd2944d93c465c5ea4d2c9a225230f336119c;hb=82af026a4b6c22b680929ca7b6db45b0c6a55171;hp=8c49fc7bc360c6640fcdab83944305a62ecfdef7;hpb=8901d15087b224610a26c829635d5d305b02307b;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/llog_swab.c b/lustre/obdclass/llog_swab.c index 8c49fc7..18ebd29 100644 --- a/lustre/obdclass/llog_swab.c +++ b/lustre/obdclass/llog_swab.c @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -52,7 +52,7 @@ static void print_llogd_body(struct llogd_body *d) { CDEBUG(D_OTHER, "llogd body: %p\n", d); CDEBUG(D_OTHER, "\tlgd_logid.lgl_oid: "LPX64"\n", d->lgd_logid.lgl_oid); - CDEBUG(D_OTHER, "\tlgd_logid.lgl_ogr: "LPX64"\n", d->lgd_logid.lgl_ogr); + CDEBUG(D_OTHER, "\tlgd_logid.lgl_oseq: "LPX64"\n", d->lgd_logid.lgl_oseq); CDEBUG(D_OTHER, "\tlgd_logid.lgl_ogen: %#x\n", d->lgd_logid.lgl_ogen); CDEBUG(D_OTHER, "\tlgd_ctxt_idx: %#x\n", d->lgd_ctxt_idx); CDEBUG(D_OTHER, "\tlgd_llh_flags: %#x\n", d->lgd_llh_flags); @@ -67,7 +67,7 @@ void lustre_swab_llogd_body (struct llogd_body *d) ENTRY; print_llogd_body(d); __swab64s (&d->lgd_logid.lgl_oid); - __swab64s (&d->lgd_logid.lgl_ogr); + __swab64s (&d->lgd_logid.lgl_oseq); __swab32s (&d->lgd_logid.lgl_ogen); __swab32s (&d->lgd_ctxt_idx); __swab32s (&d->lgd_llh_flags); @@ -85,7 +85,7 @@ void lustre_swab_llogd_conn_body (struct llogd_conn_body *d) __swab64s (&d->lgdc_gen.mnt_cnt); __swab64s (&d->lgdc_gen.conn_cnt); __swab64s (&d->lgdc_logid.lgl_oid); - __swab64s (&d->lgdc_logid.lgl_ogr); + __swab64s (&d->lgdc_logid.lgl_oseq); __swab32s (&d->lgdc_logid.lgl_ogen); __swab32s (&d->lgdc_ctxt_idx); } @@ -111,7 +111,8 @@ void lustre_swab_lu_seq_range(struct lu_seq_range *range) { __swab64s (&range->lsr_start); __swab64s (&range->lsr_end); - __swab32s (&range->lsr_mdt); + __swab32s (&range->lsr_index); + __swab32s (&range->lsr_flags); } EXPORT_SYMBOL(lustre_swab_lu_seq_range); @@ -138,7 +139,7 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec, struct llog_rec_tail *tail) struct llog_unlink_rec *lur = (struct llog_unlink_rec *)rec; __swab64s(&lur->lur_oid); - __swab32s(&lur->lur_ogr); + __swab32s(&lur->lur_oseq); __swab32s(&lur->lur_count); break; } @@ -147,7 +148,7 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec, struct llog_rec_tail *tail) struct llog_setattr_rec *lsr = (struct llog_setattr_rec *)rec; __swab64s(&lsr->lsr_oid); - __swab32s(&lsr->lsr_ogr); + __swab32s(&lsr->lsr_oseq); __swab32s(&lsr->lsr_uid); __swab32s(&lsr->lsr_gid); break; @@ -180,7 +181,7 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec, struct llog_rec_tail *tail) struct llog_setattr64_rec *lsr = (struct llog_setattr64_rec *)rec; __swab64s(&lsr->lsr_oid); - __swab32s(&lsr->lsr_ogr); + __swab32s(&lsr->lsr_oseq); __swab32s(&lsr->lsr_uid); __swab32s(&lsr->lsr_gid); @@ -211,11 +212,10 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec, struct llog_rec_tail *tail) struct llog_logid_rec *lid = (struct llog_logid_rec *)rec; __swab64s(&lid->lid_id.lgl_oid); - __swab64s(&lid->lid_id.lgl_ogr); + __swab64s(&lid->lid_id.lgl_oseq); __swab32s(&lid->lid_id.lgl_ogen); break; } - case LLOG_JOIN_REC: case LLOG_PAD_MAGIC: break;