linux/fs/f2fs
Nanzhe Zhao d194f112a9 f2fs: advance index and offset after zeroing in large folio read
In f2fs_read_data_large_folio(), the block zeroing path calls
folio_zero_range() and then continues the loop. However, it fails to
advance index and offset before continuing.

This can cause the loop to repeatedly process the same subpage of the
folio, leading to stalls/hangs and incorrect progress when reading large
folios with holes/zeroed blocks.

Fix it by advancing index and offset unconditionally in the loop
iteration, so they are updated even when the zeroing path continues.

Signed-off-by: Nanzhe Zhao <nzzhao@126.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
History 2026-01-17 00:00:35 +00:00
..
acl.c fs: inline current_umask() and move it to fs_struct.h 2025-11-05 22:51:23 +01:00
acl.h f2fs: Pass folios to f2fs_init_acl() 2025-04-28 15:26:41 +00:00
checkpoint.c f2fs: clean up the type parameter in f2fs_sync_meta_pages() 2026-01-17 00:00:34 +00:00
compress.c f2fs: trace elapsed time for node_write lock 2026-01-07 03:17:06 +00:00
data.c f2fs: advance index and offset after zeroing in large folio read 2026-01-17 00:00:35 +00:00
debug.c f2fs: support to show curseg.next_blkoff in debugfs 2025-12-04 02:00:05 +00:00
dir.c f2fs: add lookup_mode mount option 2025-08-11 17:03:27 +00:00
extent_cache.c f2fs: fix age extent cache insertion skip on counter overflow 2025-12-04 02:00:03 +00:00
f2fs.h f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-01-17 00:00:34 +00:00
file.c f2fs: clean up the type parameter in f2fs_sync_meta_pages() 2026-01-17 00:00:34 +00:00
gc.c f2fs: support non-4KB block size without packed_ssa feature 2026-01-17 00:00:34 +00:00
gc.h f2fs: set default valid_thresh_ratio to 80 for zoned devices 2025-10-24 21:23:55 +00:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: trace elapsed time for cp_rwsem lock 2026-01-07 03:17:06 +00:00
inode.c f2fs: trace elapsed time for cp_rwsem lock 2026-01-07 03:17:06 +00:00
iostat.c f2fs: add async reset zone command support 2023-06-12 13:04:09 -07:00
iostat.h f2fs: use iostat_lat_type directly as a parameter in the iostat_update_and_unbind_ctx() 2023-02-07 10:39:28 -08:00
Kconfig f2fs: switch to using the crc32 library 2024-12-01 17:23:02 -08:00
Makefile f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
namei.c f2fs: trace elapsed time for cp_rwsem lock 2026-01-07 03:17:06 +00:00
node.c f2fs: detect more inconsistent cases in sanity_check_node_footer() 2026-01-17 00:00:35 +00:00
node.h f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-01-17 00:00:34 +00:00
recovery.c f2fs: support non-4KB block size without packed_ssa feature 2026-01-17 00:00:34 +00:00
segment.c f2fs: support non-4KB block size without packed_ssa feature 2026-01-17 00:00:34 +00:00
segment.h f2fs: support non-4KB block size without packed_ssa feature 2026-01-17 00:00:34 +00:00
shrinker.c f2fs: handle error cases of memory donation 2025-05-06 15:46:55 +00:00
super.c f2fs: support non-4KB block size without packed_ssa feature 2026-01-17 00:00:34 +00:00
sysfs.c f2fs: fix to check sysfs filename w/ gc_pin_file_thresh correctly 2026-01-07 03:17:09 +00:00
verity.c f2fs: use f2fs_filemap_get_folio() to support fault injection 2025-12-04 01:55:57 +00:00
xattr.c f2fs: trace elapsed time for cp_rwsem lock 2026-01-07 03:17:06 +00:00
xattr.h f2fs: use global inline_xattr_slab instead of per-sb slab cache 2025-12-04 02:00:02 +00:00