Skip to content

Commit fed457a

Browse files
mitaDavid Woodhouse
authored andcommitted
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: Alexey Dobriyan <adobriyan@gmail.com> Suggested-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Akinobu 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 8da552f commit fed457a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/sm_ftl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ int sm_cache_flush(struct sm_ftl *ftl)
934934

935935

936936
/* Try to read all unread areas of the cache block*/
937-
for_each_bit(sector_num, &ftl->cache_data_invalid_bitmap,
937+
for_each_set_bit(sector_num, &ftl->cache_data_invalid_bitmap,
938938
ftl->block_size / SM_SECTOR_SIZE) {
939939

940940
if (!sm_read_sector(ftl,

0 commit comments

Comments
 (0)