diff options
author | 2023-03-13 18:48:25 +0900 | |
---|---|---|
committer | 2023-03-29 15:17:38 -0700 | |
commit | 6797ebc4ac55e7539391a5155f8a27f614da6bc5 (patch) | |
tree | ed2f7fdfbce886954a02136807e8e86f34fae274 /fs/f2fs/f2fs.h | |
parent | f2fs: remove entire rb_entry sharing (diff) | |
download | linux-6797ebc4ac55e7539391a5155f8a27f614da6bc5.tar.gz linux-6797ebc4ac55e7539391a5155f8a27f614da6bc5.tar.bz2 linux-6797ebc4ac55e7539391a5155f8a27f614da6bc5.zip |
f2fs: Fix discard bug on zoned block devices with 2MiB zone size
When using f2fs on a zoned block device with 2MiB zone size, IO errors
occurs because f2fs tries to write data to a zone that has not been reset.
The cause is that f2fs tries to discard multiple zones at once. This is
caused by a condition in f2fs_clear_prefree_segments that does not check
for zoned block devices when setting the discard range. This leads to
invalid reset commands and write pointer mismatches.
This patch fixes the zoned block device with 2MiB zone size to reset one
zone at a time.
Signed-off-by: Yonggil Song <yonggil.song@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
0 files changed, 0 insertions, 0 deletions