Whamcloud - gitweb
LU-6245 libcfs: replace IS_PO2 with is_power_of_2 in server code 75/24575/10
authorJames Simmons <uja.ornl@yahoo.com>
Sat, 28 Jan 2017 03:47:24 +0000 (22:47 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 7 Feb 2017 06:16:50 +0000 (06:16 +0000)
commitfc117cc92d224466c1ec45de422f9f6624bbb1da
treec6004e9a5da1093682341da10c48e812e3e80ca4
parentabe676530d3d04887b251c97ba21be8ae063b5e6
LU-6245 libcfs: replace IS_PO2 with is_power_of_2 in server code

Replaces IS_PO2 by is_power_of_2. It is more accurate to use
is_power_of_2 since it returns 1 for numbers that are powers
of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are
powers of 2.

Change-Id: I595053a658a96818ac9b434377c275d3ed7143ec
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/24575
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/mdt/mdt_internal.h
lustre/obdclass/genops.c
lustre/ofd/ofd_dev.c
lustre/osd-zfs/osd_io.c