]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: Fix f2fs_truncate_partial_nodes ftrace event
authorDouglas Raillard <douglas.raillard@arm.com>
Mon, 6 Mar 2023 12:25:49 +0000 (12:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2023 09:24:03 +0000 (11:24 +0200)
commit708be29a8554dc9dcb97ed300a81d3dfd204eab2
treee70fffbbfe9a7989cc487da6fb97ea1cd22b3354
parent255a115a770b2b5189ca05cda79867edf90d63bb
f2fs: Fix f2fs_truncate_partial_nodes ftrace event

[ Upstream commit 0b04d4c0542e8573a837b1d81b94209e48723b25 ]

Fix the nid_t field so that its size is correctly reported in the text
format embedded in trace.dat files. As it stands, it is reported as
being of size 4:

        field:nid_t nid[3];     offset:24;      size:4; signed:0;

Instead of 12:

        field:nid_t nid[3];     offset:24;      size:12;        signed:0;

This also fixes the reported offset of subsequent fields so that they
match with the actual struct layout.

Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/trace/events/f2fs.h