Skip to content

Commit

Permalink
ext[234]: fix comment for nonexistent variable
Browse files Browse the repository at this point in the history
The comment in ext[234]_new_blocks() describes about "i".  But there is no
local variable called "i" in that scope.  I guess it has been renamed to
group_no.

Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Feb 6, 2008
1 parent 1eca93f commit 144704e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fs/ext2/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,8 @@ ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal,
smp_rmb();

/*
* Now search the rest of the groups. We assume that
* i and gdp correctly point to the last group visited.
* Now search the rest of the groups. We assume that
* group_no and gdp correctly point to the last group visited.
*/
for (bgi = 0; bgi < ngroups; bgi++) {
group_no++;
Expand Down
2 changes: 1 addition & 1 deletion fs/ext3/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ ext3_fsblk_t ext3_new_blocks(handle_t *handle, struct inode *inode,

/*
* Now search the rest of the groups. We assume that
* i and gdp correctly point to the last group visited.
* group_no and gdp correctly point to the last group visited.
*/
for (bgi = 0; bgi < ngroups; bgi++) {
group_no++;
Expand Down
2 changes: 1 addition & 1 deletion fs/ext4/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ ext4_fsblk_t ext4_new_blocks_old(handle_t *handle, struct inode *inode,

/*
* Now search the rest of the groups. We assume that
* i and gdp correctly point to the last group visited.
* group_no and gdp correctly point to the last group visited.
*/
for (bgi = 0; bgi < ngroups; bgi++) {
group_no++;
Expand Down

0 comments on commit 144704e

Please sign in to comment.