Whamcloud - gitweb
LU-3963 Revert bitops changes 78/9978/3
authorOleg Drokin <oleg.drokin@intel.com>
Wed, 16 Apr 2014 18:37:53 +0000 (14:37 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 17 Apr 2014 04:42:21 +0000 (04:42 +0000)
commite5f552b70dccbd2fdf21ec7b7053a01bcbe062c2
tree13c88adc8d7936db929376f055e6c89370d7d451
parent0bafbd7d8f652997d83b3cc2419894f48833f424
LU-3963 Revert bitops changes

This reverts bitops portions of http://review.whamcloud.com/7803
commit 001b8dbfacb747f1649a2eb047a5f118ce32fdc7

The uncovered problem is such that previously used fls returned 0
for the case of no bits set where as __fls return value
for such a case is undefined in the case of at least Linux kernel.

Change-Id: I993674161b08791157781a2b1da0872b12358bb1
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/9978
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
libcfs/include/libcfs/user-bitops.h
libcfs/include/libcfs/winnt/portals_utils.h
libcfs/libcfs/hash.c
libcfs/libcfs/user-bitops.c
lustre/obdclass/lprocfs_status.c
lustre/ofd/ofd_dev.c