Akinobu Mita
6017b485ca
ext4: use memweight()
...
Convert ext4_count_free() to use memweight() instead of table lookup
based counting clear bits implementation. This change only affects the
code segments enabled by EXT4FS_DEBUG.
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.
This also includes the following change.
- Remove unnecessary map == NULL check in ext4_count_free() which
always takes non-null pointer as the memory area.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-30 17:25:16 -07:00
..
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:32 +04:00
2012-07-30 17:25:16 -07:00
2012-07-14 16:38:34 +04:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-30 17:25:14 -07:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:38:34 +04:00
2012-07-25 14:51:30 -05:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-26 11:25:33 -07:00
2012-07-14 16:38:34 +04:00
2012-07-16 14:24:43 -05:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:34:32 +04:00
2012-07-23 12:27:27 -07:00
2012-07-23 00:01:29 +04:00
2012-07-30 17:25:16 -07:00
2012-07-30 17:25:16 -07:00
2012-07-30 17:25:16 -07:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-24 17:57:05 -07:00
2012-07-22 23:58:09 +04:00
2012-07-22 23:58:04 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:34:47 +04:00
2012-07-24 17:40:44 -07:00
2012-07-09 23:38:36 +02:00
2012-07-23 14:11:22 +08:00
2012-07-23 00:00:58 +04:00
2012-07-23 00:00:58 +04:00
2012-06-01 08:32:58 -07:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-23 12:27:27 -07:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:38:34 +04:00
2012-06-01 19:51:22 -07:00
2012-07-23 00:01:29 +04:00
2012-07-30 17:25:11 -07:00
2012-07-30 17:25:16 -07:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-23 18:54:23 -07:00
2012-07-17 16:48:09 -07:00
2012-07-30 17:25:16 -07:00
2012-07-14 16:34:32 +04:00
2012-07-24 17:40:44 -07:00
2012-07-14 16:34:47 +04:00
2012-07-23 00:00:58 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-26 11:25:33 -07:00
2012-07-22 23:58:12 +04:00
2012-07-23 15:50:52 -07:00
2012-07-24 17:40:44 -07:00
2012-07-22 23:58:16 +04:00
2012-07-23 12:27:27 -07:00
2012-07-22 23:57:59 +04:00
2012-07-14 16:35:42 +04:00
2012-07-14 16:34:47 +04:00
2012-05-23 17:42:39 -07:00
2012-05-30 21:04:55 -04:00
2012-05-30 21:04:56 -04:00
2012-05-30 08:52:42 -07:00
2012-07-22 23:58:45 +04:00
2012-07-13 08:36:35 -07:00
2012-06-01 11:53:44 -07:00
2012-07-14 16:35:15 +04:00
2012-07-14 16:32:46 +04:00
2012-05-31 17:49:32 -07:00
2012-07-17 21:37:27 +02:00
2012-07-30 17:25:11 -07:00
2012-05-29 23:28:30 -04:00
2012-07-16 08:33:14 -07:00
2012-07-22 23:57:58 +04:00
2012-07-14 16:32:47 +04:00
2012-07-22 23:58:18 +04:00
2012-07-26 14:48:55 -07:00
2012-07-14 16:38:36 +04:00
2012-05-30 08:52:42 -07:00
2012-05-15 09:17:34 -04:00
2012-07-14 16:38:34 +04:00
2012-07-23 12:46:01 -07:00
2012-07-14 16:32:48 +04:00
2012-07-23 00:00:55 +04:00
2012-07-14 16:38:32 +04:00
2012-07-23 00:01:29 +04:00
2012-07-24 15:27:34 +08:00
2012-07-14 16:37:27 +04:00
2012-07-14 16:32:48 +04:00
2012-07-23 00:00:15 +04:00
2012-05-29 23:28:29 -04:00
2012-07-26 13:36:43 -07:00
2012-06-11 13:16:35 +01:00
2012-05-29 23:28:30 -04:00
2012-06-13 21:16:42 +02:00
2012-05-23 17:42:39 -07:00
2012-05-29 23:28:31 -04:00
2012-07-14 16:38:34 +04:00
2012-07-22 23:59:01 +04:00
2012-05-29 23:28:32 -04:00
2012-07-30 17:25:11 -07:00