Whamcloud - gitweb
LU-14055 lmv: reduce struct lmv_obd size
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 11 May 2021 07:11:36 +0000 (00:11 -0700)
committerLi Xi <lixi@ddn.com>
Tue, 18 May 2021 01:47:42 +0000 (01:47 +0000)
commit04d09d43ae28a55d5e3a8842a5a93fd31aa9272c
tree2b1afc2c68d09efa07e7471a3f8194f6d5bd4f62
parent320284b84f7a6d8465a3e35dfaf7ca27d050df1d
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.

Lustre-change: https://review.whamcloud.com/41162
Lustre-commit: e11deeb1e6d114608eac4ee998d4cea22e30b0f5

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