Whamcloud - gitweb
LU-14055 lmv: reduce struct lmv_obd size 62/41162/6
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 7 Jan 2021 12:26:28 +0000 (05:26 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 10 Apr 2021 17:39:41 +0000 (17:39 +0000)
commite11deeb1e6d114608eac4ee998d4cea22e30b0f5
tree3603d09fde49caab7b9865fd179261635d7362a6
parentbcc5d784826d2d7a8eece28e96fab8b0fa02ab17
LU-14055 lmv: reduce struct lmv_obd size

The lmv_obd struct contains lmv_mdt_descs which is large enough
to reference 512 * 512 = 262144 targets, but there can be only
65536 OSTs or MDTs in a single filesystem today.

Shrink the allocation size to match the current limits, reducing
the size of obd_device.u since this is the largest union member.

This reduces the size of each obd_device from 6752 to 4568 bytes.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I752b021bdb5d02e3ead3bb266121be5dbf3ebbe5
Reviewed-on: https://review.whamcloud.com/41162
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lu_object.h
lustre/lfsck/lfsck_lib.c
lustre/obdclass/lu_tgt_descs.c