Whamcloud - gitweb
Removes all traces of mds_req, mds_rep, ost_req, and ost_rep. All subsystems
authorpschwan <pschwan>
Sat, 6 Apr 2002 17:38:35 +0000 (17:38 +0000)
committerpschwan <pschwan>
Sat, 6 Apr 2002 17:38:35 +0000 (17:38 +0000)
commit867f92a22c4dae8b8c5d26b6c94150691d22e4a6
tree9acfc7af8dbe0089a2b3d7de67c1aa0c2ca64b27
parenteb49f1d33514d8863c73ecd2f3e7cbf09f16bad3
Removes all traces of mds_req, mds_rep, ost_req, and ost_rep.  All subsystems
now use the functions in rpc/pack_generic.c, which are based around
struct lustre_msg.  That file is small and easily understood, see it for more
details.

Now that everyone uses the same functions, the code can probably be refactored
more sensibly.  This is left as an exercise for the reader.

Other, cleanups:
- we don't need to memset() after OBD_ALLOC
- the MDS and OST request and reply packets were so similar that they've been
merged, into struct mds_body and ost_body respectively.
30 files changed:
lustre/include/linux/lustre_idl.h
lustre/include/linux/lustre_mds.h
lustre/include/linux/lustre_net.h
lustre/include/linux/obd.h
lustre/include/linux/obd_class.h
lustre/include/linux/obd_ost.h
lustre/ldlm/Makefile.am
lustre/ldlm/ldlm_lockd.c
lustre/lib/Makefile.am
lustre/lib/mds_pack.c [deleted file]
lustre/lib/mds_updates.c
lustre/lib/obd_pack.c
lustre/llite/namei.c
lustre/llite/super.c
lustre/mdc/Makefile.am
lustre/mdc/mdc_reint.c
lustre/mdc/mdc_request.c
lustre/mds/Makefile.am
lustre/mds/handler.c
lustre/mds/mds_reint.c
lustre/obdclass/class_obd.c
lustre/osc/osc_request.c
lustre/ost/ost_handler.c
lustre/ptlrpc/Makefile.am
lustre/ptlrpc/client.c
lustre/ptlrpc/niobuf.c
lustre/ptlrpc/pack_generic.c [moved from lustre/lib/pack_generic.c with 56% similarity]
lustre/ptlrpc/service.c
lustre/tests/llmount.sh
lustre/tests/llmountcleanup.sh