linux/fs/f2fs
Christoph Hellwig 8d3c1fa3fa f2fs: don't rely on F2FS_MAP_* in f2fs_iomap_begin
When testing with a mixed zoned / convention device combination, there
are regular but not 100% reproducible failures in xfstests generic/113
where the __is_valid_data_blkaddr assert hits due to finding a hole.

This seems to be because f2fs_map_blocks can set this flag on a hole
when it was found in the extent cache.

Rework f2fs_iomap_begin to just check the special block numbers directly.
This has the added benefits of the WARN_ON showing which invalid block
address we found, and being properly error out on delalloc blocks that
are confusingly called unwritten but not actually suitable for direct
I/O.

Fixes: 1517c1a7a4 ("f2fs: implement iomap operations")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2023-01-06 15:12:28 -08:00
..
acl.c fs: pass dentry to set acl method 2022-10-19 12:55:42 +02:00
acl.h fs: pass dentry to set acl method 2022-10-19 12:55:42 +02:00
checkpoint.c f2fs: fix return val in f2fs_start_ckpt_thread() 2022-11-01 17:56:04 -07:00
compress.c f2fs: fix to support .migrate_folio for compressed inode 2023-01-04 12:56:04 -08:00
data.c f2fs: don't rely on F2FS_MAP_* in f2fs_iomap_begin 2023-01-06 15:12:28 -08:00
debug.c f2fs: fix some format WARNING in debug.c and sysfs.c 2022-12-12 14:59:39 -08:00
dir.c f2fs: change type for 'sbi->readdir_ra' 2022-11-28 12:46:33 -08:00
extent_cache.c f2fs: let's avoid panic if extent_tree is not created 2023-01-03 08:59:06 -08:00
f2fs.h f2fs: fix to call clear_page_private_reference in .{release,invalid}_folio 2023-01-04 12:56:04 -08:00
file.c f2fs: file: drop useless initializer in expand_inode_data() 2023-01-04 12:56:04 -08:00
gc.c f2fs-for-6.2-rc1 2022-12-14 15:27:57 -08:00
gc.h f2fs: remove redundant code for gc condition 2022-07-30 20:16:20 -07:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: support recording errors into superblock 2022-10-04 13:31:45 -07:00
inode.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
iostat.c f2fs: iostat: support accounting compressed IO 2022-08-29 21:15:51 -07:00
iostat.h f2fs: iostat: support accounting compressed IO 2022-08-29 21:15:51 -07:00
Kconfig f2fs: introduce F2FS_UNFAIR_RWSEM to support unfair rwsem 2022-03-04 09:15:53 -08:00
Makefile f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
namei.c f2fs-for-6.2-rc1 2022-12-14 15:27:57 -08:00
node.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
node.h f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
recovery.c f2fs: do some cleanup for f2fs module init 2022-12-08 09:32:20 -08:00
segment.c f2fs: initialize extent_cache parameter 2023-01-03 08:59:05 -08:00
segment.h f2fs: remove struct segment_allocation default_salloc_ops 2022-12-08 09:32:10 -08:00
shrinker.c f2fs: add block_age-based extent cache 2022-12-12 14:53:56 -08:00
super.c f2fs: don't call f2fs_issue_discard_timeout() when discard_cmd_cnt is 0 in f2fs_put_super() 2022-12-12 14:59:38 -08:00
sysfs.c f2fs: fix some format WARNING in debug.c and sysfs.c 2022-12-12 14:59:39 -08:00
verity.c - Alistair Popple has a series which addresses a race which causes page 2022-10-14 12:28:43 -07:00
xattr.c f2fs: support recording errors into superblock 2022-10-04 13:31:45 -07:00
xattr.h f2fs: code cleanup by removing ifdef macro surrounding 2020-05-26 18:56:10 -07:00