diff options
author | Chao Yu <chao@kernel.org> | 2023-01-31 15:47:01 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-02-02 22:37:17 +0100 |
commit | a84153f939808102dfa10904aa0f743e734a3e1d (patch) | |
tree | e9dcf5fa78a89e9ab4fa94ded589180bad4ae6d9 /fs/f2fs | |
parent | f2fs: fix to update age extent correctly during truncation (diff) | |
download | linux-a84153f939808102dfa10904aa0f743e734a3e1d.tar.xz linux-a84153f939808102dfa10904aa0f743e734a3e1d.zip |
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().
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index a83117325b87..a17aca50c18c 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1494,6 +1494,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; } |