Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8023780rdb; Thu, 4 Jan 2024 16:19:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGS2iEyLjv7VINs9GePirb7SHSSQfbGbKVbxnLPaMLTwFrBVE6bGu/4I3zQdDIBBmQuwAC6 X-Received: by 2002:a17:906:489a:b0:a27:7da8:aaee with SMTP id v26-20020a170906489a00b00a277da8aaeemr670972ejq.12.1704413963802; Thu, 04 Jan 2024 16:19:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704413963; cv=none; d=google.com; s=arc-20160816; b=X81d442aZcTm+yFf6GAMxCXtJjZV3f6KTiW8R4TEwXYr6uwL7Jq/g9LPEi1IvWiKat nbSSO5q4jd9EJE7ly+gmHCVp9+WbgfMPDDDIYwkXZAMqemt23G6uMpWIDgO99gn1GM62 y80NxDeJxDeibm4pkyhKjCP8h0+0/4smk2S2z/a3+F586gNjXXdCOopfkzDpP8Q330H+ MDpEdm4+3R9qaUQ6jJ6NgmizedFpDvKMXPjZ8M3rH0uygYxJxBdNzEX8AWEd0YORjBNS S9ZC2xq8pkTaR14UGib6Q3yGRmk2g1Amh8D6UduFvIJIcr+tEqCTopzBo7xXcFqGcNYs 9K5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=UCWmPnh4/7OR3ybbE2FMvkH17FAylsNGz0+xise0Fb4=; fh=zVj8myaB/JDH6VZYBybioyfsRJmR3JdD/LXKY8yFamE=; b=LBA3ko//xR8LTfOXM/HK9R1QZf4aE5mzaxj3vTwQ3OyPqtSQdteT1OpLdwkMeKfu7a 7LouLYHntxFiEEhYf3nGMocRdPySOzOrN9SQbR2GfHCJ8+yMZRrJZCnFFh8dM1rJmYFP c+/ZRUuw90RBcuBTTXg8u44qEbB3xCak2DQmqjqJaObdYzpFmscuS5Y00U6Y1VhyyuKZ iFyA3N5EMcWSexOLXY+Aken7F91yPKErq3Xr4J8cPEkbl+URxSX7J4jEXFs+0RuZpDMj xJWbTUPBaM1xewpllrVZ3NpRNDCbfjzU5nz6S5efKdcLEgnMUNTGfrAk8Sb4f9XtxURd fk9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17351-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o10-20020a1709061d4a00b00a26aa69bb75si153943ejh.936.2024.01.04.16.19.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 16:19:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17351-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 82CBB1F22DE3 for ; Fri, 5 Jan 2024 00:19:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3F5A1C02; Fri, 5 Jan 2024 00:19:14 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67135A2D; Fri, 5 Jan 2024 00:19:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98EA4C433C8; Fri, 5 Jan 2024 00:19:13 +0000 (UTC) Date: Thu, 4 Jan 2024 19:20:19 -0500 From: Steven Rostedt To: Stephen Rothwell Cc: Al Viro , Linux Kernel Mailing List , Linux Next Mailing List , Linus Torvalds Subject: Re: linux-next: manual merge of the vfs tree with Linus' tree Message-ID: <20240104192019.4d550363@gandalf.local.home> In-Reply-To: <20240105111016.5a3c36d0@canb.auug.org.au> References: <20240105111016.5a3c36d0@canb.auug.org.au> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 5 Jan 2024 11:10:16 +1100 Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the vfs tree got a conflict in: > > fs/tracefs/inode.c > > between commits: > > 7e8358edf503 ("eventfs: Fix file and directory uid and gid ownership") > ad579864637a ("tracefs: Check for dentry->d_inode exists in set_gid()") > > from Linus' tree and commit: > > da549bdd15c2 ("dentry: switch the lists of children to hlist") > > from the vfs tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > diff --cc fs/tracefs/inode.c > index bc86ffdb103b,61ca5fcf10f9..000000000000 > --- a/fs/tracefs/inode.c > +++ b/fs/tracefs/inode.c > @@@ -207,28 -206,14 +206,25 @@@ static void set_gid(struct dentry *pare Oh, and this is the code that I'm removing and will be in linux-next soon. -- Steve > > change_gid(this_parent, gid); > repeat: > - next = this_parent->d_subdirs.next; > + dentry = d_first_child(this_parent); > resume: > - while (next != &this_parent->d_subdirs) { > + hlist_for_each_entry_from(dentry, d_sib) { > + struct tracefs_inode *ti; > - struct list_head *tmp = next; > - struct dentry *dentry = list_entry(tmp, struct dentry, d_child); > - next = tmp->next; > + > + /* Note, getdents() can add a cursor dentry with no inode */ > + if (!dentry->d_inode) > + continue; > + > spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED); > > change_gid(dentry, gid); > > + /* If this is the events directory, update that too */ > + ti = get_tracefs(dentry->d_inode); > + if (ti && (ti->flags & TRACEFS_EVENT_INODE)) > + eventfs_update_gid(dentry, gid); > + > - if (!list_empty(&dentry->d_subdirs)) { > + if (!hlist_empty(&dentry->d_children)) { > spin_unlock(&this_parent->d_lock); > spin_release(&dentry->d_lock.dep_map, _RET_IP_); > this_parent = dentry;