Commit fe59109a authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: initialize extent_cache parameter

This can avoid confusing tracepoint values.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent b3d83066
...@@ -2183,7 +2183,7 @@ int f2fs_read_multi_pages(struct compress_ctx *cc, struct bio **bio_ret, ...@@ -2183,7 +2183,7 @@ int f2fs_read_multi_pages(struct compress_ctx *cc, struct bio **bio_ret,
sector_t last_block_in_file; sector_t last_block_in_file;
const unsigned blocksize = blks_to_bytes(inode, 1); const unsigned blocksize = blks_to_bytes(inode, 1);
struct decompress_io_ctx *dic = NULL; struct decompress_io_ctx *dic = NULL;
struct extent_info ei = {0, }; struct extent_info ei = {};
bool from_dnode = true; bool from_dnode = true;
int i; int i;
int ret = 0; int ret = 0;
......
...@@ -938,7 +938,7 @@ static int __get_new_block_age(struct inode *inode, struct extent_info *ei) ...@@ -938,7 +938,7 @@ static int __get_new_block_age(struct inode *inode, struct extent_info *ei)
static void __update_extent_cache(struct dnode_of_data *dn, enum extent_type type) static void __update_extent_cache(struct dnode_of_data *dn, enum extent_type type)
{ {
struct extent_info ei; struct extent_info ei = {};
if (!__may_extent_tree(dn->inode, type)) if (!__may_extent_tree(dn->inode, type))
return; return;
......
...@@ -2559,7 +2559,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi, ...@@ -2559,7 +2559,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi,
struct f2fs_map_blocks map = { .m_next_extent = NULL, struct f2fs_map_blocks map = { .m_next_extent = NULL,
.m_seg_type = NO_CHECK_TYPE, .m_seg_type = NO_CHECK_TYPE,
.m_may_create = false }; .m_may_create = false };
struct extent_info ei = {0, }; struct extent_info ei = {};
pgoff_t pg_start, pg_end, next_pgofs; pgoff_t pg_start, pg_end, next_pgofs;
unsigned int blk_per_seg = sbi->blocks_per_seg; unsigned int blk_per_seg = sbi->blocks_per_seg;
unsigned int total = 0, sec_num; unsigned int total = 0, sec_num;
......
...@@ -3160,7 +3160,7 @@ static int __get_segment_type_4(struct f2fs_io_info *fio) ...@@ -3160,7 +3160,7 @@ static int __get_segment_type_4(struct f2fs_io_info *fio)
static int __get_age_segment_type(struct inode *inode, pgoff_t pgofs) static int __get_age_segment_type(struct inode *inode, pgoff_t pgofs)
{ {
struct f2fs_sb_info *sbi = F2FS_I_SB(inode); struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
struct extent_info ei; struct extent_info ei = {};
if (f2fs_lookup_age_extent_cache(inode, pgofs, &ei)) { if (f2fs_lookup_age_extent_cache(inode, pgofs, &ei)) {
if (!ei.age) if (!ei.age)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment