aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/balloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r--fs/ext4/balloc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
index 3dacb124b8c8..3e85886a6382 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
@@ -101,13 +101,13 @@ read_block_bitmap(struct super_block *sb, unsigned int block_group)
101 desc = ext4_get_group_desc (sb, block_group, NULL); 101 desc = ext4_get_group_desc (sb, block_group, NULL);
102 if (!desc) 102 if (!desc)
103 goto error_out; 103 goto error_out;
104 bh = sb_bread(sb, ext4_block_bitmap(desc)); 104 bh = sb_bread(sb, ext4_block_bitmap(sb, desc));
105 if (!bh) 105 if (!bh)
106 ext4_error (sb, "read_block_bitmap", 106 ext4_error (sb, "read_block_bitmap",
107 "Cannot read block bitmap - " 107 "Cannot read block bitmap - "
108 "block_group = %d, block_bitmap = %llu", 108 "block_group = %d, block_bitmap = %llu",
109 block_group, 109 block_group,
110 ext4_block_bitmap(desc)); 110 ext4_block_bitmap(sb, desc));
111error_out: 111error_out:
112 return bh; 112 return bh;
113} 113}
@@ -463,10 +463,10 @@ do_more:
463 if (!desc) 463 if (!desc)
464 goto error_return; 464 goto error_return;
465 465
466 if (in_range(ext4_block_bitmap(desc), block, count) || 466 if (in_range(ext4_block_bitmap(sb, desc), block, count) ||
467 in_range(ext4_inode_bitmap(desc), block, count) || 467 in_range(ext4_inode_bitmap(sb, desc), block, count) ||
468 in_range(block, ext4_inode_table(desc), sbi->s_itb_per_group) || 468 in_range(block, ext4_inode_table(sb, desc), sbi->s_itb_per_group) ||
469 in_range(block + count - 1, ext4_inode_table(desc), 469 in_range(block + count - 1, ext4_inode_table(sb, desc),
470 sbi->s_itb_per_group)) 470 sbi->s_itb_per_group))
471 ext4_error (sb, "ext4_free_blocks", 471 ext4_error (sb, "ext4_free_blocks",
472 "Freeing blocks in system zones - " 472 "Freeing blocks in system zones - "
@@ -1563,11 +1563,11 @@ allocated:
1563 1563
1564 ret_block = grp_alloc_blk + ext4_group_first_block_no(sb, group_no); 1564 ret_block = grp_alloc_blk + ext4_group_first_block_no(sb, group_no);
1565 1565
1566 if (in_range(ext4_block_bitmap(gdp), ret_block, num) || 1566 if (in_range(ext4_block_bitmap(sb, gdp), ret_block, num) ||
1567 in_range(ext4_block_bitmap(gdp), ret_block, num) || 1567 in_range(ext4_block_bitmap(sb, gdp), ret_block, num) ||
1568 in_range(ret_block, ext4_inode_table(gdp), 1568 in_range(ret_block, ext4_inode_table(sb, gdp),
1569 EXT4_SB(sb)->s_itb_per_group) || 1569 EXT4_SB(sb)->s_itb_per_group) ||
1570 in_range(ret_block + num - 1, ext4_inode_table(gdp), 1570 in_range(ret_block + num - 1, ext4_inode_table(sb, gdp),
1571 EXT4_SB(sb)->s_itb_per_group)) 1571 EXT4_SB(sb)->s_itb_per_group))
1572 ext4_error(sb, "ext4_new_block", 1572 ext4_error(sb, "ext4_new_block",
1573 "Allocating block in system zone - " 1573 "Allocating block in system zone - "