Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2392587ybt; Sun, 28 Jun 2020 18:24:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAIki0wLXAu8avwrVu1A75c57WrIrg/ShRZaMMFLEGuUzparyBm/jpnD1imJKGn3aCK1G5 X-Received: by 2002:a17:906:dbcf:: with SMTP id yc15mr3256176ejb.222.1593393897450; Sun, 28 Jun 2020 18:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593393897; cv=none; d=google.com; s=arc-20160816; b=nRA67oJSuFBfvZWkFBZJxhubVJwb/YdVYPl+znxGRQ1ducuh6rsUeQQSSm9iIXKbwv 4tkB3ONGcD7QIm6lquZbs28LhjQga+sOAW6Hb1dkhAVae2f8HxMtyuoC1paiBFZiGghY 5rXv69Vr7MHvJ54LKQH5COxuclMrd0YDA/AkXHBP/XmH6Voe/o1+yj3Mkeqek75kxlJC OSUAVWbIIMEimxUtnzO6JDUYVR5gvC7MXtP2ohDEiB5b/IhX6VbAQPhKfrmBok7n1u7A cG4HVhFftzP9ro0lo+2SCwSkZ5Hf7ukKWczWZiiTsLVP4zzRvxvqvEuq/hMwID9z0pYh zL/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=lMzREaimadDljkb4iToPgaMWjf5MEO3kThn030t42j4=; b=F7ZyT6MSa0EHJHfSNpASYlhdkV69Qjmgza72/xme1S4xdEBlsCe4vp1BxuvPydLoTK DftRFZ41jt3DkvG5lUT+eLXZ1iwdEsgIdP+U/EbsgFkgyxXlrErktn1JtCs6UxKpLQom IkbR/haQlomji5GjqAgLsLObdlYQcdFGgkVN81DxPlugFtgfdvw+XVBhD/J6pupYksX6 clCsDBz28DIWwXRpCCe7aDMYxB2iywYQbG2/gHnIPHKrjjg52HcIofycRaXPFkuxQWL7 kpX+2INlhRvkRO4vasjMcFXE0Ly8cOrByhlqrs3mfcQC46CTZ5zAstStgI6aDhOu9TDY PZ1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si1999887ejr.391.2020.06.28.18.24.23; Sun, 28 Jun 2020 18:24:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbgF2BWw (ORCPT + 99 others); Sun, 28 Jun 2020 21:22:52 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6760 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726465AbgF2BWw (ORCPT ); Sun, 28 Jun 2020 21:22:52 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 51D47B79ECF292AC6EAB; Mon, 29 Jun 2020 09:22:50 +0800 (CST) Received: from huawei.com (10.175.101.6) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 29 Jun 2020 09:22:47 +0800 From: zhengliang To: , CC: Subject: [PATCH] ext4: lost matching-pair of trace in ext4_truncate Date: Mon, 29 Jun 2020 10:13:41 +0800 Message-ID: <20200629021341.36129-1-zhengliang6@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org If truncate inline data successfully, it shoule call trace exit. Signed-off-by: zhengliang --- 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