diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2010-03-05 16:41:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-06 14:26:23 -0500 |
commit | 984b3f5746ed2cde3d184651dabf26980f2b66e5 (patch) | |
tree | 87dc2162b4778b0075874d9592384530022e15a4 /fs/ocfs2/quota_local.c | |
parent | e3cb91ce1ac1d93a7cc6f81bb5247f7602b572bb (diff) |
bitops: rename for_each_bit() to for_each_set_bit()
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.
The patch includes a macro to map the old for_each_bit() onto the new
for_each_set_bit(). This is a (very) temporary thing to ease the migration.
[akpm@linux-foundation.org: add temporary for_each_bit()]
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: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/quota_local.c')
-rw-r--r-- | fs/ocfs2/quota_local.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c index 21f9e71223ca..a6467f3d262e 100644 --- a/fs/ocfs2/quota_local.c +++ b/fs/ocfs2/quota_local.c | |||
@@ -457,7 +457,7 @@ static int ocfs2_recover_local_quota_file(struct inode *lqinode, | |||
457 | break; | 457 | break; |
458 | } | 458 | } |
459 | dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; | 459 | dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; |
460 | for_each_bit(bit, rchunk->rc_bitmap, ol_chunk_entries(sb)) { | 460 | for_each_set_bit(bit, rchunk->rc_bitmap, ol_chunk_entries(sb)) { |
461 | qbh = NULL; | 461 | qbh = NULL; |
462 | status = ocfs2_read_quota_block(lqinode, | 462 | status = ocfs2_read_quota_block(lqinode, |
463 | ol_dqblk_block(sb, chunk, bit), | 463 | ol_dqblk_block(sb, chunk, bit), |