f2fs: fix up f2fs_lookup tracepoints
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 21 Sep 2021 14:37:30 +0000 (22:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:31 +0000 (09:48 +0100)
commit0dfaa04f0161a4a48eaa03911f2fa1c1ee1f8a4c
treeab35174964d6fa2f429ec7cbbb1c0a81fd024ae4
parent6d28f6ba633dcd7653ecf84b299a2fbb947f86df
f2fs: fix up f2fs_lookup tracepoints

[ Upstream commit 70a9ac36ffd807ac506ed0b849f3e8ce3c6623f2 ]

Fix up a misuse that the filename pointer isn't always valid in
the ring buffer, and we should copy the content instead.

Fixes: 0c5e36db17f5 ("f2fs: trace f2fs_lookup")
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/trace/events/f2fs.h