Whamcloud - gitweb
LU-12610 cfs: add unlikely to CFS_ macros 91/51291/2
authorTimothy Day <timday@amazon.com>
Tue, 13 Jun 2023 03:33:37 +0000 (03:33 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 20 Jun 2023 03:49:28 +0000 (03:49 +0000)
commitbbfe5c8d211c8285a7d426f3efc92b13028e638d
tree22daeadd36a1bb459ac74aa953678707afca56b3
parentb80d6defb7b018250ef4fafccff7c980aed6a444
LU-12610 cfs: add unlikely to CFS_ macros

Fix the (hopefully) last few OBD_ users to use
CFS_ macros instead.

Add an 'unlikely()' to CFS_ macros. Some of the
OBD_ macros included this hint. Once those macros
are removed, the hint will be lost. Add it to the
CFS_ macros instead.

The libcfs_fail.h only has a couple style issues
left. Just fix them in this patch.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Ie06533b8b408cacf6f6fe2d29a1a8e727ca4280b
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51291
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_fail.h
lustre/llite/rw.c
lustre/llite/vvp_page.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c