UPSTREAM: f2fs: fix to update age extent in f2fs_do_zero_range()
We should update age extent in f2fs_do_zero_range() like we did in f2fs_truncate_data_blocks_range(). Bug: 254441685 Fixes: 71644dff4811 ("f2fs: add block_age-based extent cache") Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from commit a84153f939808102dfa10904aa0f743e734a3e1d) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: I775351141745194b08c5f149be36cd275ab84e4c
This commit is contained in:
parent
1e1986dd44
commit
72a7bbb4a3
@ -1432,6 +1432,7 @@ static int f2fs_do_zero_range(struct dnode_of_data *dn, pgoff_t start,
|
||||
}
|
||||
|
||||
f2fs_update_read_extent_cache_range(dn, start, 0, index - start);
|
||||
f2fs_update_age_extent_cache_range(dn, start, index - start);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user