Whamcloud - gitweb
LU-13134 obdclass: use offset instead of cp_linkage 28/37428/12
authorWang Shilong <wshilong@ddn.com>
Tue, 4 Feb 2020 13:44:23 +0000 (21:44 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 4 Jul 2020 03:03:03 +0000 (03:03 +0000)
commit55967f1e5c7013d2005b38754213babf180e6ea5
tree0c25ca8689cc6e5167eb12ea6238956a8a5fda36
parentf37e26964a34fc33ec6add792ebb3b6a51797813
LU-13134 obdclass: use offset instead of cp_linkage

Since we have fixed-size cl_page allocations, we could use
offset array to store every slices pointer for cl_page.

With this patch, we will reduce cl_page size from 392 bytes
to 336 bytes which means we could allocate from 10 to 12 objects.

Change-Id: I323bd589941125bfddf104f53a335d0cfee5c548
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/37428
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/cl_object.h
lustre/obdclass/cl_page.c