Akinobu Mita
10d470849a
ext3: use memweight()
...
Convert ext3_count_free() to use memweight() instead of table lookup
based counting clear bits implementation. This change only affects the
code segments enabled by EXT3FS_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 changes.
- Remove unnecessary map == NULL check in ext3_count_free() which
always takes non-null pointer as the memory area.
- Fix printk format warning that only reveals with EXT3FS_DEBUG.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Jan Kara <jack@suse.cz>
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-27 20:52:25 -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-03-20 21:29:45 -04:00
2012-07-14 16:35:42 +04:00
2012-07-14 16:34:47 +04:00
2012-04-20 17:29:13 -07:00
2012-05-23 17:42:39 -07:00
2012-05-30 21:04:55 -04:00
2012-03-20 21:29:46 -04:00
2012-05-30 21:04:56 -04:00
2012-05-06 13:43:41 +08:00
2012-03-20 21:29:46 -04:00
2012-04-20 17:29:13 -07:00
2012-03-20 21:48:21 +08: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
2011-12-13 11:18:17 -08:00
2012-03-24 10:24:31 -07:00
2012-06-01 11:53:44 -07:00
2012-07-14 16:35:15 +04:00
2012-02-28 19:31:58 -05: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-01-06 23:16:53 -05:00
2012-07-16 08:33:14 -07:00
2012-07-22 23:57:58 +04:00
2012-03-29 18:12:23 -07:00
2012-01-03 22:52:39 -05:00
2012-07-14 16:32:47 +04:00
2012-07-22 23:58:18 +04:00
2011-08-01 02:10:06 -04:00
2012-07-26 14:48:55 -07:00
2012-07-14 16:38:36 +04:00
2012-02-28 19:31:58 -05:00
2012-05-30 08:52:42 -07:00
2012-03-21 13:36:41 -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-03-20 21:29:38 -04:00
2012-07-14 16:32:48 +04:00
2012-02-28 19:31:58 -05: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-01-03 22:57:11 -05:00
2012-02-28 19:31:58 -05: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-02-28 19:31:58 -05: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-02-28 19:31:58 -05:00
2012-07-30 17:25:11 -07:00