Skip to content

Commit 29bc5b4

Browse files
Toshiyuki OkajimaLinus Torvalds
authored andcommitted
mistaken ext4_inode_bitmap for ext4_block_bitmap
In ext4_new_blocks(), one of two ext4_block_bitmap() calls should be ext4_inode_bitmap() call. It is not harmful in normal processing, but it should be fixed. Signed-off-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> Cc: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2be7fe0 commit 29bc5b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ext4/balloc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ ext4_fsblk_t ext4_new_blocks(handle_t *handle, struct inode *inode,
15851585
ret_block = grp_alloc_blk + ext4_group_first_block_no(sb, group_no);
15861586

15871587
if (in_range(ext4_block_bitmap(sb, gdp), ret_block, num) ||
1588-
in_range(ext4_block_bitmap(sb, gdp), ret_block, num) ||
1588+
in_range(ext4_inode_bitmap(sb, gdp), ret_block, num) ||
15891589
in_range(ret_block, ext4_inode_table(sb, gdp),
15901590
EXT4_SB(sb)->s_itb_per_group) ||
15911591
in_range(ret_block + num - 1, ext4_inode_table(sb, gdp),

0 commit comments

Comments
 (0)