Commit 0f4b5e3e authored by Douglas Raillard's avatar Douglas Raillard Committed by openeuler-sync-bot
Browse files

f2fs: Fix f2fs_truncate_partial_nodes ftrace event

stable inclusion
from stable-v5.10.179
commit 37882b203a2d206cfab4fb9e1ade4374d0db0540
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8C809

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=37882b203a2d206cfab4fb9e1ade4374d0db0540



--------------------------------

[ Upstream commit 0b04d4c0 ]

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: default avatarDouglas Raillard <douglas.raillard@arm.com>
Reviewed-by: default avatarMukesh Ojha <quic_mojha@quicinc.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit a807ae08)
parent 20191393
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment