f2fs: fix to initialize map.m_pblk in f2fs_precache_extents()
authorChao Yu <chao@kernel.org>
Sat, 7 Oct 2023 07:45:52 +0000 (15:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:59:26 +0000 (11:59 +0100)
commitf1aeaf3c47c9d76b309b92a5bd13208ea30c5fb0
tree44a461aa89f2f1bff7e7f612e08d39d732f330a0
parentca2294c1275ab57bd27d0a279ea0c8ed9fc0a029
f2fs: fix to initialize map.m_pblk in f2fs_precache_extents()

[ Upstream commit 8b07c1fb0f1ad139373c8253f2fad8bc43fab07d ]

Otherwise, it may print random physical block address in tracepoint
of f2fs_map_blocks() as below:

f2fs_map_blocks: dev = (253,16), ino = 2297, file offset = 0, start blkaddr = 0xa356c421, len = 0x0, flags = 0

Fixes: c4020b2da4c9 ("f2fs: support F2FS_IOC_PRECACHE_EXTENTS")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/file.c