Commit fed457a8 authored by Akinobu Mita's avatar Akinobu Mita Committed by David Woodhouse

bitops: rename for_each_bit() to for_each_set_bit(): mtd

Rename for_each_bit() to for_each_set_bit in the kernel source tree.  To
permit for_each_clear_bit(), should that ever be added.

I'll be sending a patch to Linus this week which removes the temporary
for_each_bit() macro, so this patch will be needed to avoid build
breakage.
Suggested-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Suggested-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Artem Bityutskiy <dedekind@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 8da552f2
...@@ -934,7 +934,7 @@ int sm_cache_flush(struct sm_ftl *ftl) ...@@ -934,7 +934,7 @@ int sm_cache_flush(struct sm_ftl *ftl)
/* Try to read all unread areas of the cache block*/ /* Try to read all unread areas of the cache block*/
for_each_bit(sector_num, &ftl->cache_data_invalid_bitmap, for_each_set_bit(sector_num, &ftl->cache_data_invalid_bitmap,
ftl->block_size / SM_SECTOR_SIZE) { ftl->block_size / SM_SECTOR_SIZE) {
if (!sm_read_sector(ftl, if (!sm_read_sector(ftl,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment