Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1779149ybt; Sat, 27 Jun 2020 20:42:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSWHEJPZQlPx5qNExqM26YgvsXp96Yx5KN76u9ZjdEyJFY54hJxK+qJzqx1eKxNot3moTl X-Received: by 2002:a17:906:4d4c:: with SMTP id b12mr8541176ejv.506.1593315751287; Sat, 27 Jun 2020 20:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593315751; cv=none; d=google.com; s=arc-20160816; b=LcQ6kkGFiSIrZN5FcWegX7JEnFkuOPnazck7L0lLw4R7xPWEQChCj/OJ9dsPXjpW92 4KWG3vqsAtLJDdDiI1rCTWEg+iqM8oGLlxet3LATJ0TWUOXurZHEacJARhH6vQQ0wuvm y6H/ZAfkvN6gs/23oVfchTeELJEKOzjNv8C/SGqF2ZBJdi+/+Wp0sR5O/oMD8nT85mHO MuGxmSH0k0sxJ0g8eqSXLnXKTDOviBlsfIoWFhHHpBQpoPDnmhaOcWc8mUS+oATfIBgX G0FBXvOnKRh1JdVrE21PfqmKoLNNwcfPayCeOVxDUGYAU3a4jjZGOqTTVbau+3Ok77sQ Y0Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Hs6F31Kz0u3U5NtXXapf7lsxuVCTqgTLJOPEeOcqfd8=; b=qcoHJ4env2PdgXGytMz9p7H87C5G5kZM0AULSNxZgdY2JiXQh8gFRzXa+IDCHjWXb5 nLTmuI+eF6apCViqwRcX4mQrWGHZojbew9H4i8fi+GL4dTOkOJdxUb4yaJETKm/4TP1X kdJ8spBEMbGrbMFKQh0o0mOvn71WQEQ4o/LomVZ7gtHvuoN1zJw75+CqY/f+ksDIvUkv Uw6gNVJuclOY79z9/7KDpUjVL6waZO6T0urKCO/asfuX+GF/WW5+6/ounqypVQs2DQF0 fREAlj0jYuncymn7OPS6D1KjuhTqtlTH7YyA3A0589IGv6ANdVU7imK/ZDQYlcGtw9AE djgg== 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 j18si5673082edp.389.2020.06.27.20.41.55; Sat, 27 Jun 2020 20:42:31 -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 S1725992AbgF1Dly (ORCPT + 99 others); Sat, 27 Jun 2020 23:41:54 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6322 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725993AbgF1Dly (ORCPT ); Sat, 27 Jun 2020 23:41:54 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9A97496F4DA2971F57B5; Sun, 28 Jun 2020 11:41:51 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Sun, 28 Jun 2020 11:41:49 +0800 From: Yi Zhuang To: , CC: Subject: [PATCH] ext4: lost matching-pair of trace in ext4_unlink Date: Sun, 28 Jun 2020 11:48:52 +0800 Message-ID: <20200628034852.85502-1-zhuangyi1@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org If dquot_initialize() return non-zero and trace of ext4_unlink_enter/exit enabled then the matching-pair of trace_exit will lost in log. Signed-off-by: Yi Zhuang --- fs/ext4/namei.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 56738b538ddf..5e41d45915c9 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -3193,10 +3193,10 @@ static int ext4_unlink(struct inode *dir, struct dentry *dentry) * in separate transaction */ retval = dquot_initialize(dir); if (retval) - return retval; + goto out_unlink; retval = dquot_initialize(d_inode(dentry)); if (retval) - return retval; + goto out_unlink; retval = -ENOENT; bh = ext4_find_entry(dir, &dentry->d_name, &de, NULL); @@ -3255,6 +3255,7 @@ static int ext4_unlink(struct inode *dir, struct dentry *dentry) brelse(bh); if (handle) ext4_journal_stop(handle); +out_unlink: trace_ext4_unlink_exit(dentry, retval); return retval; } -- 2.26.0.106.g9fadedd