Loading fs/f2fs/data.c +3 −2 Original line number Original line Diff line number Diff line Loading @@ -257,7 +257,7 @@ static void f2fs_map_bh(struct super_block *sb, pgoff_t pgofs, unsigned int blkbits = sb->s_blocksize_bits; unsigned int blkbits = sb->s_blocksize_bits; size_t count; size_t count; set_buffer_new(bh_result); clear_buffer_new(bh_result); map_bh(bh_result, sb, ei->blk + pgofs - ei->fofs); map_bh(bh_result, sb, ei->blk + pgofs - ei->fofs); count = ei->fofs + ei->len - pgofs; count = ei->fofs + ei->len - pgofs; if (count < (UINT_MAX >> blkbits)) if (count < (UINT_MAX >> blkbits)) Loading Loading @@ -1139,7 +1139,7 @@ static int __get_data_block(struct inode *inode, sector_t iblock, goto put_out; goto put_out; if (dn.data_blkaddr != NULL_ADDR) { if (dn.data_blkaddr != NULL_ADDR) { set_buffer_new(bh_result); clear_buffer_new(bh_result); map_bh(bh_result, inode->i_sb, dn.data_blkaddr); map_bh(bh_result, inode->i_sb, dn.data_blkaddr); } else if (create) { } else if (create) { err = __allocate_data_block(&dn); err = __allocate_data_block(&dn); Loading Loading @@ -1184,6 +1184,7 @@ static int __get_data_block(struct inode *inode, sector_t iblock, if (err) if (err) goto sync_out; goto sync_out; allocated = true; allocated = true; set_buffer_new(bh_result); blkaddr = dn.data_blkaddr; blkaddr = dn.data_blkaddr; } } /* Give more consecutive addresses for the readahead */ /* Give more consecutive addresses for the readahead */ Loading Loading
fs/f2fs/data.c +3 −2 Original line number Original line Diff line number Diff line Loading @@ -257,7 +257,7 @@ static void f2fs_map_bh(struct super_block *sb, pgoff_t pgofs, unsigned int blkbits = sb->s_blocksize_bits; unsigned int blkbits = sb->s_blocksize_bits; size_t count; size_t count; set_buffer_new(bh_result); clear_buffer_new(bh_result); map_bh(bh_result, sb, ei->blk + pgofs - ei->fofs); map_bh(bh_result, sb, ei->blk + pgofs - ei->fofs); count = ei->fofs + ei->len - pgofs; count = ei->fofs + ei->len - pgofs; if (count < (UINT_MAX >> blkbits)) if (count < (UINT_MAX >> blkbits)) Loading Loading @@ -1139,7 +1139,7 @@ static int __get_data_block(struct inode *inode, sector_t iblock, goto put_out; goto put_out; if (dn.data_blkaddr != NULL_ADDR) { if (dn.data_blkaddr != NULL_ADDR) { set_buffer_new(bh_result); clear_buffer_new(bh_result); map_bh(bh_result, inode->i_sb, dn.data_blkaddr); map_bh(bh_result, inode->i_sb, dn.data_blkaddr); } else if (create) { } else if (create) { err = __allocate_data_block(&dn); err = __allocate_data_block(&dn); Loading Loading @@ -1184,6 +1184,7 @@ static int __get_data_block(struct inode *inode, sector_t iblock, if (err) if (err) goto sync_out; goto sync_out; allocated = true; allocated = true; set_buffer_new(bh_result); blkaddr = dn.data_blkaddr; blkaddr = dn.data_blkaddr; } } /* Give more consecutive addresses for the readahead */ /* Give more consecutive addresses for the readahead */ Loading