Whamcloud - gitweb
LU-3556 osd-ldiskfs: remove dependency on mdd module 45/6945/12
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 11 Jul 2013 21:34:12 +0000 (15:34 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Aug 2013 18:02:11 +0000 (18:02 +0000)
commit9b3b6c106b53c2c391d5e4347875a1cd3e150600
tree53592edddeb1798326517c74e4f6a4954e9977d1
parent3917e62018878dfffac59ceed70f20b0419945d3
LU-3556 osd-ldiskfs: remove dependency on mdd module

Move the lu_capainfo_get() function (formerly named md_capainfo())
into obdclass/capa.c instead of mdd_device.c.  Otherwise, the
osd-ldiskfs.ko module depends on mdd.ko in order to load, and that
doesn't really make sense.

Move the lu_capainfo structure (formerly named md_capainfo) into
lustre_capa.h, and change the structure field prefix to match the
new name.  Fix up the users of this structure/function, and do some
code style cleanup in those functions at the same time.

Move the mdt_set_capainfo() and mdt_dump_capainfo() structures from
being static inline in mdt_internal.h into mdt_lib.c, since they are
too big to be static inline functions.  mdt_dump_capainfo() isn't
used anywhere, so it is put under #ifdef DEBUG_CAPA.  They should
really be named mdt_capainfo_{set,dump}(), but that was too big a
change for this patch.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I80ae12d3e14c7a935219a83ce8e79ebb98f12979
Reviewed-on: http://review.whamcloud.com/6945
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_capa.h
lustre/include/md_object.h
lustre/mdd/mdd_device.c
lustre/mdd/mdd_internal.h
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lib.c
lustre/obdclass/capa.c
lustre/obdclass/class_obd.c
lustre/osd-ldiskfs/osd_handler.c