-static inline struct lustre_capa *
-lustre_unpack_capa(struct lustre_msg *msg, unsigned int offset)
-{
- struct lustre_capa *capa;
-
- capa = lustre_swab_buf(msg, offset, sizeof(*capa),
- lustre_swab_lustre_capa);
- if (capa == NULL)
- CERROR("bufcount %u, bufsize %u\n",
- lustre_msg_bufcount(msg),
- (lustre_msg_bufcount(msg) <= offset) ?
- -1 : lustre_msg_buflen(msg, offset));
-
- return capa;
-}
-