summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorAkinobu Mita2012-07-30 23:40:57 +0200
committerLinus Torvalds2012-07-31 02:25:16 +0200
commit9b58f6d4aaef070bf6e0744713b6d2b6fc1b3578 (patch)
tree67b220d36ae96abb0a4551d0ead65e3c0c599704 /drivers/md
parentstring: introduce memweight() (diff)
downloadkernel-qcow2-linux-9b58f6d4aaef070bf6e0744713b6d2b6fc1b3578.tar.gz
kernel-qcow2-linux-9b58f6d4aaef070bf6e0744713b6d2b6fc1b3578.tar.xz
kernel-qcow2-linux-9b58f6d4aaef070bf6e0744713b6d2b6fc1b3578.zip
qnx4fs: use memweight()
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 <akinobu.mita@gmail.com> Acked-by: Anders Larsen <al@alarsen.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions