projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c0ed06
)
f2fs: fix to update age extent in f2fs_do_zero_range()
author
Chao Yu
<chao@kernel.org>
Tue, 31 Jan 2023 14:47:01 +0000
(22:47 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 2 Feb 2023 21:37:17 +0000
(13:37 -0800)
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>
fs/f2fs/file.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index a83117325b87350359f0823ba9af292e766c21cf..a17aca50c18cc880eab9d397c4fc1cbc2eb13ffc 100644
(file)
--- 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;
}