Whamcloud - gitweb
LU-12624 obdclass: lu_tgt_descs cleanup 24/35824/5
authorLai Siyao <lai.siyao@whamcloud.com>
Sat, 3 Aug 2019 21:00:33 +0000 (05:00 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 18 Oct 2019 01:06:53 +0000 (01:06 +0000)
commit45222b2ef279d62ac3aab0e7babc55d77e3c93a2
tree567b5622a0407b48935c0682ea877250599f9a14
parent39da3c06275e04e2a6e7f055cb27ee9dff1ea576
LU-12624 obdclass: lu_tgt_descs cleanup

This patch cleans up code about lu_tgt_descs, so that it's cleaner
to add MDT object QoS allocation support:
* rename struct ost_pool to lu_tgt_pool.
* put struct lu_qos, lmv_desc/lov_desc and lu_tgt_pool into struct
  lu_tgt_descs because it's more natural to manage these data there
  and fewer arguments are needed to pass around in related functions.
* remove lu_tgt_descs.ltd_tgtnr, use
  lu_tgt_descs.ltd_lov_desc.ld_tgt_count instead, because they are
  duplicate.
* other cleanups.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I46f2e0ff06a8e580bac1dfda9a09a549b38d487d
Reviewed-on: https://review.whamcloud.com/35824
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
18 files changed:
lustre/include/lu_object.h
lustre/include/obd.h
lustre/lmv/lmv_fld.c
lustre/lmv/lmv_internal.h
lustre/lmv/lmv_obd.c
lustre/lmv/lproc_lmv.c
lustre/lod/lod_dev.c
lustre/lod/lod_internal.h
lustre/lod/lod_lov.c
lustre/lod/lod_object.c
lustre/lod/lod_pool.c
lustre/lod/lod_qos.c
lustre/lod/lproc_lod.c
lustre/lov/lov_internal.h
lustre/lov/lov_pool.c
lustre/obdclass/Makefile.in
lustre/obdclass/lu_qos.c [deleted file]
lustre/obdclass/lu_tgt_descs.c