Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp287756rdb; Tue, 19 Dec 2023 17:36:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhkxc7U5yGfbxx3BdQgtfUJjckAKhv4rAW93m448ihFlep6YkL+0srQBYKdLk7ttGxttMW X-Received: by 2002:a17:90a:6f06:b0:28b:c1a9:97c2 with SMTP id d6-20020a17090a6f0600b0028bc1a997c2mr1990905pjk.12.1703036206290; Tue, 19 Dec 2023 17:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703036206; cv=none; d=google.com; s=arc-20160816; b=jqxKU7TFPXrKdKC1VPAssG+zYLKZTK6JHPgwvB7Gn4foNwi1jNeiVGByeHftRro+cK WcjkpAJoBima667UrKOwsCd5nF23SyQDuVZCgi+yq64Zwaexg7X8PIniXVEcWhhaOlOR Is52vrGyEHGpW9vMVlnmVXeh5U1WeESW85ymiPz9f1DVo4SBs8WGdf5RG+YuSFxGM6u6 HcjMbslji3eoIkRRgzqdyk+udhzbHEiMIfegq5fH2i9HAVMHMjnjHs8ECn/BmZiQ8aHn NO7z9OP4XHjBLH1fpUvTNL3ch4uTjke+y8Bo0ezlzXuFhWWVKPWL9nrvPkj6JdVmL67p wC7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=lhTjK4akHJ+Vz3JaxhNDk1DJxUnOy4b7vdU1q/Ng7Dk=; fh=Rgs2IwaKgt8hvAp9usgSlHLsmLkOELtruSLXzxczMrs=; b=U8khGkS8KhwQxBhdLB8B5NaFtuOJPXi62davJYuWjUwAznYOz93kfVVYRu/YhkFLTk ZSLi+MH/Uv8pvUPhXDVl5T2c6noyXmNzH3en9/MGXBmPxRQ1GpD6zb6ukU8KOtTH6DQM BFS0kz2SOTlGO296D2z/gIRQHSPTKG/xJ6VClaz4NRx1hcT/iXRb2Eju1QmKxrSj2YkQ xADnMmUFRorixhHnrBUEPStj6VKl8LWtmTvgSkCGFIgM3nIUElfp5veJ9wvfi4quyeCh JNOi2YdEuiwMIs7Nn28bj663IQIZPpwi6xLbBa1JvJvDR8cXE7zhrnw8HOpuP5gv+O2g oopw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=jsqoLa3l; spf=pass (google.com: domain of linux-kernel+bounces-6252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m2-20020a17090ab78200b0028b8e72defesi2026315pjr.21.2023.12.19.17.36.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 17:36:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=jsqoLa3l; spf=pass (google.com: domain of linux-kernel+bounces-6252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6252-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 692E8B25557 for ; Wed, 20 Dec 2023 01:35:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BE1D13FEB; Wed, 20 Dec 2023 01:34:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="jsqoLa3l" X-Original-To: linux-kernel@vger.kernel.org Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (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 A5DBC1173B; Wed, 20 Dec 2023 01:34:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lhTjK4akHJ+Vz3JaxhNDk1DJxUnOy4b7vdU1q/Ng7Dk=; b=jsqoLa3lJEBMYbj5zQr0L54nrE ZEqXHm+J1m+jJgLa1TVBqFYMbVcbIb5csswAmhVL1gHOPSjWBvKkz0KmqLGQzVQ5Qd3claXbaktwP FbzBvw7/9HS7N/HKhDYn1CRVUN1jAeRdd8XO2HWuD24Wfk99Yida4YenirAL04pU8cnNt9/ZH9E8j SlvhQWaYQxF2bObXGLpBpogaMMUgMJ/hJZQmDGCN9Lk6O9yrkLjrcN8LORplB4O9p1ERu3hBPc7PW idHjigCWQqhvtZHCWjX8ec7EiqK4L6+VbSLvuvogNe+j0zNVnyu+9GEOOqWTuBN+oGdNmv/cFUSqg hJAb+uYg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rFlTG-00H2m5-2H; Wed, 20 Dec 2023 01:34:02 +0000 Date: Wed, 20 Dec 2023 01:34:02 +0000 From: Al Viro To: Stephen Rothwell Cc: Jaegeuk Kim , Chao Yu , Jan Kara , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the vfs tree with the f2fs tree Message-ID: <20231220013402.GW1674809@ZenIV> References: <20231220104734.0979a9f8@canb.auug.org.au> <20231220111325.5dd55e47@canb.auug.org.au> 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-Disposition: inline In-Reply-To: <20231220111325.5dd55e47@canb.auug.org.au> Sender: Al Viro On Wed, Dec 20, 2023 at 11:13:25AM +1100, Stephen Rothwell wrote: > Hi Al, > > On Wed, 20 Dec 2023 10:47:34 +1100 Stephen Rothwell wrote: > > > > Today's linux-next merge of the vfs tree got a conflict in: > > > > fs/f2fs/namei.c > > > > between commit: > > > > 53edb549565f ("f2fs: fix to avoid dirent corruption") > > > > from the f2fs tree and commit: > > > > 7deee77b993a ("f2fs: Avoid reading renamed directory if parent does not change") > > > > 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. > > Then I remembered to look at your suggested resolution and redid it > like you did (see below). My suggested resolution had been wrong, actually - the way it's written, link count drop should be conditional on old_is_dir, cross-directory or not. I think the right solution is if (old_dir_entry) f2fs_set_link(old_inode, old_dir_entry, old_dir_page, new_dir); if (old_is_dir) f2fs_i_links_write(old_dir, false);