X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog_swab.c;h=d50416553787dd95a39841d1dc1e471a2f342628;hb=33db53607dac6ee63755358147526c16843ac9c8;hp=41ee78a4b628e43072cdd129f57a30b482182808;hpb=90dfed8469d46f4b79ebdff8121eb109b5db6746;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/llog_swab.c b/lustre/obdclass/llog_swab.c index 41ee78a..d504165 100644 --- a/lustre/obdclass/llog_swab.c +++ b/lustre/obdclass/llog_swab.c @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -26,7 +24,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 +50,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 +65,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 +83,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 +109,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 +137,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 +146,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 +179,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,7 +210,7 @@ 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; }