ext2: use ext2_group_first_block_no()
Use ext2_group_first_block_no() and assign the return values to ext2_fsblk_t variables. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: <linux-ext4@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
bbff286024
commit
24097d12ef
@@ -275,8 +275,7 @@ static unsigned long ext2_find_near(struct inode *inode, Indirect *ind)
|
||||
* It is going to be refered from inode itself? OK, just put it into
|
||||
* the same cylinder group then.
|
||||
*/
|
||||
bg_start = (ei->i_block_group * EXT2_BLOCKS_PER_GROUP(inode->i_sb)) +
|
||||
le32_to_cpu(EXT2_SB(inode->i_sb)->s_es->s_first_data_block);
|
||||
bg_start = ext2_group_first_block_no(inode->i_sb, ei->i_block_group);
|
||||
colour = (current->pid % 16) *
|
||||
(EXT2_BLOCKS_PER_GROUP(inode->i_sb) / 16);
|
||||
return bg_start + colour;
|
||||
|
Reference in New Issue
Block a user