From: Yubo Feng Date: Sat, 20 Jun 2020 08:39:43 +0000 (+0800) Subject: f2fs: lost matching-pair of trace in f2fs_truncate_inode_blocks X-Git-Tag: v5.9-rc1~69^2~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9039d8355d6e37647b31a42122a26f1858a2470a;p=thirdparty%2Fkernel%2Flinux.git f2fs: lost matching-pair of trace in f2fs_truncate_inode_blocks if get_node_path() return -E2BIG and trace of f2fs_truncate_inode_blocks_enter/exit enabled then the matching-pair of trace_exit will lost in log. Signed-off-by: Yubo Feng Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index b4f4b0d775537..6551d5e35c057 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1041,8 +1041,10 @@ int f2fs_truncate_inode_blocks(struct inode *inode, pgoff_t from) trace_f2fs_truncate_inode_blocks_enter(inode, from); level = get_node_path(inode, from, offset, noffset); - if (level < 0) + if (level < 0) { + trace_f2fs_truncate_inode_blocks_exit(inode, level); return level; + } page = f2fs_get_node_page(sbi, inode->i_ino); if (IS_ERR(page)) {