mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 05:14:35 +00:00
Use memweight() to count the total number of bits clear in memory area. Note that this memweight() call can't be replaced with a single bitmap_weight() call, although the pointer to the memory area is aligned to long-word boundary. Because the size of the memory area may not be a multiple of BITS_PER_LONG, then it returns wrong value on big-endian architecture. Signed-off-by: Akinobu Mita <[email protected]> Acked-by: Anders Larsen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This is a snapshot of the QNX4 filesystem for Linux. Please send diffs and remarks to <[email protected]> . Credits : Richard "Scuba" A. Frowijn <[email protected]> Frank "Jedi/Sector One" Denis <[email protected]> Anders Larsen <[email protected]> (Maintainer)