Whamcloud - gitweb
LU-13601 llite: avoid needless large stats alloc 01/40901/13
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 8 Dec 2020 06:54:58 +0000 (23:54 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Dec 2021 19:54:28 +0000 (19:54 +0000)
commit9490fd9bb84dc277bd103bf16286fc26882e5b5e
tree6be0e7072b9007b0da40c667d400dd04659107f8
parentca7783348421da7ce628c69da5d4298fb372dc2b
LU-13601 llite: avoid needless large stats alloc

Allocate the ll_rw_extents_info (5896 bytes), ll_rw_offset_info
(6400 bytes), and ll_rw_process_info (640 bytes) structs only
when these stats are enabled, which is very rarely.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I59bbfce8d7f2422d810617d5fa712a67333ebbe5
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-on: https://review.whamcloud.com/40901
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c