Whamcloud - gitweb
LU-6142 lustre: use BIT() macro where appropriate 77/38377/2
authorMr NeilBrown <neilb@suse.de>
Mon, 27 Apr 2020 03:40:30 +0000 (13:40 +1000)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 May 2020 05:03:47 +0000 (05:03 +0000)
commitff09273feadc994c8c83118e9c4b33189bf04b6d
tree95238e45cf8d09b1fa79df2624bc8416770744b2
parentc438fba7f068b0713d96dce1f0183ec6da7ab000
LU-6142 lustre: 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 lustre

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I9f10e7e11e0f310c46c9b216f138799c62308279
Reviewed-on: https://review.whamcloud.com/38377
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Gian-Carlo DeFazio <defazio1@llnl.gov>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
21 files changed:
lustre/ldlm/ldlm_extent.c
lustre/ldlm/ldlm_inodebits.c
lustre/ldlm/ldlm_resource.c
lustre/lfsck/lfsck_lib.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/lov/lov_cl_internal.h
lustre/mdd/mdd_device.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lproc.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_hsm_cdt_agent.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c
lustre/obdclass/scrub.c
lustre/osc/lproc_osc.c
lustre/osd-ldiskfs/osd_iam.h
lustre/ptlrpc/gss/gss_err.h
lustre/ptlrpc/layout.c
lustre/quota/qsd_config.c
lustre/quota/qsd_internal.h