]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2026 13:31:18 +0000 (15:31 +0200)
commit5418df3adc3555d0cd446d146443d9ef6a6e4cb0
tree93f7fc0e8f51601125d9443e6cbc2c364c207c2f
parent953f2ecd996cce27115ad7c80ff843622098cd2d
f2fs: fix incorrect multidevice info in trace_f2fs_map_blocks()

commit eb2ca3ca983551a80e16a4a25df5a4ce59df8484 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/data.c