X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fpack_generic.c;h=6de2ad30dde7a8bd0f615dae4ca4720f61e3a847;hp=12b0f3b5a748ef88e6d97c6ea1d5b6bebe1fb4c4;hb=f4547f0569774eb794fb143362e201f658415f4c;hpb=bc962bde3b109b99c924137ed281d9400637e295 diff --git a/lustre/ptlrpc/pack_generic.c b/lustre/ptlrpc/pack_generic.c index 12b0f3b..6de2ad3 100644 --- a/lustre/ptlrpc/pack_generic.c +++ b/lustre/ptlrpc/pack_generic.c @@ -1878,7 +1878,7 @@ void lustre_swab_mdt_body (struct mdt_body *b) __swab64s (&b->ctime); __swab64s (&b->blocks); __swab64s (&b->ioepoch); - __swab64s (&b->ino); + CLASSERT(offsetof(typeof(*b), unused1) != 0); __swab32s (&b->fsuid); __swab32s (&b->fsgid); __swab32s (&b->capability); @@ -1888,7 +1888,7 @@ void lustre_swab_mdt_body (struct mdt_body *b) __swab32s (&b->flags); __swab32s (&b->rdev); __swab32s (&b->nlink); - __swab32s (&b->generation); + CLASSERT(offsetof(typeof(*b), unused2) != 0); __swab32s (&b->suppgid); __swab32s (&b->eadatasize); __swab32s (&b->aclsize);