If truncate inline data successfully, it shoule call trace exit. Signed-off-by: zhengliang <zhengliang6@xxxxxxxxxx> --- fs/ext4/inode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index e416096fc081..6d24ed658e30 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -4171,8 +4171,10 @@ int ext4_truncate(struct inode *inode) err = ext4_inline_data_truncate(inode, &has_inline); if (err) return err; - if (has_inline) + if (has_inline) { + trace_ext4_truncate_exit(inode); return 0; + } } /* If we zero-out tail of the page, we have to create jinode for jbd2 */ -- 2.17.1