Skip to content

Commit 8b07c1f

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: fix to initialize map.m_pblk in f2fs_precache_extents()
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: c4020b2 ("f2fs: support F2FS_IOC_PRECACHE_EXTENTS") Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent d7e9a90 commit 8b07c1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/f2fs/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3258,6 +3258,7 @@ int f2fs_precache_extents(struct inode *inode)
32583258
return -EOPNOTSUPP;
32593259

32603260
map.m_lblk = 0;
3261+
map.m_pblk = 0;
32613262
map.m_next_pgofs = NULL;
32623263
map.m_next_extent = &m_next_extent;
32633264
map.m_seg_type = NO_CHECK_TYPE;

0 commit comments

Comments
 (0)