Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1083200pxa; Wed, 5 Aug 2020 22:07:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhBRucnVa253JwzD7KjwwmHKFVnNRwEY2a6JRwf5yTd7v9X9K7X2iYJS/7KajgFt/LCRjn X-Received: by 2002:a17:906:4341:: with SMTP id z1mr2574916ejm.392.1596690443301; Wed, 05 Aug 2020 22:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596690443; cv=none; d=google.com; s=arc-20160816; b=Zy6VyEJ7ew05m5MFgFi8d+YlB6YolUdY/qHcJ0G3acm0lxmNV3/wK1mx9MDSSe+uBI YwcCl2sn3EEnXq0OxjURzwoNrvb60Msacl1TeoGUdjTL9EUVaBOn2pXeE5uuH3/sJ4Gc 3P9RdusHxMxKx6hbGu+E60S25TfKp+xVXwJ5y2iaZooHgv926QLWW+zqWBDhqmojFqKH E6tQv6ZJageNB3dkZmJzDr3MBClYij4+5rg0Yet+F8TCfcujns9LTaANk2X5ILpuIVIo I3W0vaH6bqCihdLFLjzdYvfVNFJoY+pmUaIziPuM6A0pJynfMwKh0Fjce/5InJf+UmVJ +x9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=nbrynwuHp5yK+OwaocE+guERDMcmMUVLOrPn0IV36e8=; b=mgfCcsU/G/24DDVs1LFJT7E9CMzMw5s8BwdB6JwvnzUp24K35uo2DlzfsyXo38jVAG hz8WTh4MoxgdEMNbV+ptKrgaLgVd/4rjmh1BX9aT7ToyJHbGLpQgwVT1D0C2zNUoc8UZ acYpxptYtyW41UwmRJJRU61nTqMHwdgfBwOk+lCmnYYuJ+ZzGSd6czEkbIZkQBdC0Nra OheNFMHbZ4odwPjIkbAngopmw1SWX1NEHf8uXEpveVDJArfUxMDxIFt/N1x2sHzo+pae F4smVsx7ww2+HTF8LGBPMifVzn3Y3eYXyPFrkRfvm8eh7WLFqgEXvjrfuBR/490NqbiG 4nWA== 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 cb1si2439562edb.88.2020.08.05.22.07.00; Wed, 05 Aug 2020 22:07:23 -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 S1727816AbgHFE43 (ORCPT + 99 others); Thu, 6 Aug 2020 00:56:29 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:44897 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725272AbgHFE43 (ORCPT ); Thu, 6 Aug 2020 00:56:29 -0400 Received: from callcc.thunk.org (pool-96-230-252-158.bstnma.fios.verizon.net [96.230.252.158]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 0764uMDG022041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Aug 2020 00:56:23 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 702E1420263; Thu, 6 Aug 2020 00:56:22 -0400 (EDT) Date: Thu, 6 Aug 2020 00:56:22 -0400 From: tytso@mit.edu To: Yi Zhuang Cc: , Subject: Re: [PATCH v2] ext4: lost matching-pair of trace in ext4_unlink Message-ID: <20200806045622.GE7657@mit.edu> References: <20200629122621.129953-1-zhuangyi1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200629122621.129953-1-zhuangyi1@huawei.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Jun 29, 2020 at 08:26:21PM +0800, Yi Zhuang wrote: > 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. > > v2: > Change the new label to be "out_trace:", which makes it more clear that > it is undoing the "trace" part of the code. At the same time, fix other > similar problems in this function: > > bh = ext4_find_entry(dir, &dentry->d_name, &de, NULL); > if (IS_ERR(bh)) > return PTR_ERR(bh); > if (!bh) > goto end_unlink; > > According to Andreas' suggestion, split up the "end_unlink:" label becomes > two separate labels, and then remove the "if (handle)" check, and then > use out_bh: before the handle is started. > > Signed-off-by: Yi Zhuang Thanks, applied. - Ted