Whamcloud - gitweb
LU-13199 lustre: remove cl_{offset,index,page_size} helpers 26/37426/4
authorWang Shilong <wshilong@ddn.com>
Tue, 4 Feb 2020 10:35:20 +0000 (18:35 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 May 2023 07:03:10 +0000 (07:03 +0000)
commitb34bf55f9493778c30b816a8cbbd1b901b05b60e
tree04d47957e5b77bed16491034e5fa561b3daeac8a
parent51dd6269c91dab7543cd9dfd1848c983efa6db36
LU-13199 lustre: remove cl_{offset,index,page_size} helpers

These helpers could be replaced with PAGE_SIZE and PAGE_SHIFT calculation
directly which avoid CPU overhead.

Change-Id: I624136d4399a03e599f09f00a77b86de045f19e9
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/37426
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
16 files changed:
lustre/include/cl_object.h
lustre/llite/file.c
lustre/llite/llite_lib.c
lustre/llite/llite_mmap.c
lustre/llite/rw.c
lustre/llite/rw26.c
lustre/llite/vvp_io.c
lustre/lov/lov_io.c
lustre/lov/lov_lock.c
lustre/lov/lov_page.c
lustre/mdc/mdc_dev.c
lustre/obdclass/cl_page.c
lustre/osc/osc_cache.c
lustre/osc/osc_io.c
lustre/osc/osc_lock.c
lustre/osc/osc_page.c