From: Akinobu Mita Date: Mon, 30 Jul 2012 21:40:57 +0000 (-0700) Subject: qnx4fs: use memweight() X-Git-Tag: v3.6-rc1~41^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b58f6d4aaef070bf6e0744713b6d2b6fc1b3578;p=pandora-kernel.git 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 Acked-by: Anders Larsen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed