[0/2] Bit helpers cleanup
mbox series

Message ID cover.1569951996.git.dsterba@suse.com
Headers show
  • Bit helpers cleanup
Related show


David Sterba Oct. 1, 2019, 5:52 p.m. UTC
Depends on patch "btrfs: fix balance convert to single on 32-bit host
CPUs" that's now in misc-next and cleans up the helpers as discussed at


David Sterba (2):
  btrfs: add 64bit safe helper for power of two checks
  btrfs: use has_single_bit_set for clarity

 fs/btrfs/misc.h         | 11 +++++++++++
 fs/btrfs/tree-checker.c | 14 +++++++-------
 fs/btrfs/volumes.c      |  7 +------
 3 files changed, 19 insertions(+), 13 deletions(-)