Whamcloud - gitweb
LU-5814 lov: use obd_get_info() to get def/max LOV EA sizes 95/13695/12
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 26 Mar 2015 04:44:31 +0000 (21:44 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 25 May 2015 02:57:07 +0000 (02:57 +0000)
commit800e18fc318096e0e552e9cb1927ad99b61d205e
tree6aedeee38da23bbdfb41a86a1dfa988d38ecba7b
parent551dc77e6ecd590d35fe7759124b98961642e831
LU-5814 lov: use obd_get_info() to get def/max LOV EA sizes

Use obd_get_info() to get the default and maximum LOV EA sizes (along
with maximum cookiesize) from LOV. Remove the then unused function
obd_size_diskmd() and the unused get info key KEY_LOVDESC. When
computing the maximum LOV EA size use the active OST count
(ld_active_tgt_count) rather than the OST count (ld_tgt_count).

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I4a7eb158d9cb8f4828f5cb272df8d1c843f2eb6b
Reviewed-on: http://review.whamcloud.com/13695
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd.h
lustre/include/obd_class.h
lustre/llite/lcommon_misc.c
lustre/llite/llite_lib.c
lustre/lov/lov_obd.c