]> git.ipfire.org Git - thirdparty/linux.git/commit
f2fs: fix incorrect multidevice info in trace_f2fs_map_blocks()
authorYongpeng Yang <yangyongpeng@xiaomi.com>
Mon, 23 Mar 2026 12:06:22 +0000 (20:06 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 24 Mar 2026 17:21:00 +0000 (17:21 +0000)
commiteb2ca3ca983551a80e16a4a25df5a4ce59df8484
tree671c1f817a7374b8423893702f386ef3f260cfa7
parent39d4ee19c1e7d753dd655aebee632271b171f43a
f2fs: fix incorrect multidevice info in trace_f2fs_map_blocks()

When f2fs_map_blocks()->f2fs_map_blocks_cached() hits the read extent
cache, map->m_multidev_dio is not updated, which leads to incorrect
multidevice information being reported by trace_f2fs_map_blocks().

This patch updates map->m_multidev_dio in f2fs_map_blocks_cached() when
the read extent cache is hit.

Cc: stable@kernel.org
Fixes: 0094e98bd147 ("f2fs: factor a f2fs_map_blocks_cached helper")
Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c