Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-1866 misc: fix some issues found during LFSCK
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
pack_generic.c
diff --git
a/lustre/ptlrpc/pack_generic.c
b/lustre/ptlrpc/pack_generic.c
index
12b0f3b
..
6de2ad3
100644
(file)
--- 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->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);
__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->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);
__swab32s (&b->suppgid);
__swab32s (&b->eadatasize);
__swab32s (&b->aclsize);