Whamcloud - gitweb
LU-13134 clio: cl_page index compaction 17/37417/5
authorPatrick Farrell <farr0186@gmail.com>
Tue, 4 Feb 2020 01:05:27 +0000 (20:05 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 7 Apr 2020 17:19:03 +0000 (17:19 +0000)
commitaed166fa29e6f39e53bcc0402ed4875776915a55
tree67898aed83ef032cc6324074473c718f3f7a725d
parent03364148c01ffe7bb2f2abfde84bbc36dc4d8237
LU-13134 clio: cl_page index compaction

The cpl_index field is not necessary for the vvp layer,
since that's the same as the vm page index, and it has
already been duplicated for the lov layer.

So, moving the osc usage of this to the top, we can save
24 bytes per page (in the slices) by removing this from
the cl_page_slice, at the cost of 8 bytes in the cl_page.
So a net savings of 16 bytes.

After this patch, cl_page could be reduced from 408 to
392 bytes.

Signed-off-by: Patrick Farrell <farr0186@gmail.com>
Change-Id: Ib4fd75f112afb816443799314cd2ef75ff4f4c84
Reviewed-on: https://review.whamcloud.com/37417
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
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/include/lustre_osc.h
lustre/llite/vvp_internal.h
lustre/llite/vvp_page.c
lustre/lov/lov_page.c
lustre/obdclass/cl_page.c
lustre/obdecho/echo_client.c
lustre/osc/osc_page.c