Whamcloud - gitweb
LU-6142 libcfs: use BIT() macro where appropriate 74/38374/2
authorMr NeilBrown <neilb@suse.de>
Mon, 27 Apr 2020 03:36:17 +0000 (13:36 +1000)
committerOleg Drokin <green@whamcloud.com>
Thu, 14 May 2020 05:39:06 +0000 (05:39 +0000)
commit5bb99e46bc9041a3b8e15e793649935388180525
tree9f8dd997e0bffdfd4045b97ea30da49bab8d7a9a
parent42880f9502ba57b7ee35559d7b07d2f1a3adec72
LU-6142 libcfs: use BIT() macro where appropriate

When accessing a bit in a bitmap/mask/flags-word it can be more
readable to use BIT(num) rather than "1 << num".

This patch makes that change to various places in libcfs.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I5e945358d2385599f8fe6f1ddff310efe17b589f
Reviewed-on: https://review.whamcloud.com/38374
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/curproc.h
libcfs/include/libcfs/libcfs_fail.h
libcfs/include/libcfs/libcfs_hash.h
libcfs/libcfs/debug.c
libcfs/libcfs/hash.c
libcfs/libcfs/libcfs_string.c