Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp193139rdh; Wed, 25 Oct 2023 22:17:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+ZbOLQS2oam/RKZUa4Luss5gTsh+xkaANO/ybdZv7Rj9NtHEyGE91yW6Aod0Zf98CkYVy X-Received: by 2002:ad4:5bce:0:b0:65a:e23c:8861 with SMTP id t14-20020ad45bce000000b0065ae23c8861mr18827603qvt.9.1698297430200; Wed, 25 Oct 2023 22:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698297430; cv=none; d=google.com; s=arc-20160816; b=LOqJyjn2ionkFC5Y+BSebEB8A9URT3734DmPOsgjcYgKiMlDTX2mp79vyLULMRDyG8 98TQDPIRHoKD+5fbacKJTE+wghLu1TPU6ZMqqc9pLcM/isemLlnEyZhgy98+Nqlc8NNK 3C3veN2H3ZTyIaJ5V1Y77ZnhluTN9nRccgwOZGu49DC3mk60VqzniZbAhbjzQ/GSY2YY K2+GT4BE1bCjqW+dUaz3k7HyPN9ro0MH1RpQLhBbBo62AcfUEoNlvLEL+Y1nLY+uhpuC zc5ZVZRXPZs5gfRRDd8Yu+ltK5HKkaw/tpszKoAxSTWyG0l+RFBcRfqJl9gE+XWly7K2 WKSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xcRpgRwe25+UkQEfJDZGZHuA0KvrCaL/46MeTSbRYhg=; fh=NjR3Fyct1evXQDB5fj0fV0S5dsUohSYBSfWNEovE7Tk=; b=eeaNm+WbKfShCj78pxlt8tcP78PRDwlXNoPQtgYJ9EDsk/mM9TfFOGfKepucy4vk8V MEtNycS9p0FmsegVXAjof5s2wJ5LKLKx/Tenl1j2FQlwmXHf+y3b43KGWBA2iypvj8zQ AmM/EfXWN4Gn6nrQ07AepD8JKZRznN/CdhoLhCWuYowGp9b8BtPu5LrboaHj3OBOCEpC 2DMN4JTiRFn/kHedo0tPYNySBf3B/rx4o2wY3tJoseLGlCr9AfWDEfDnQKH3P5hL0rBq nMXj1VMa3ESQKoj7S6dLQT9tZv1jKo38mvsbrOLEGHyBXE0JoxPRP29vomb/WaOkjFiT muRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iNlzEdEH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h2-20020a0dde02000000b0059eed9c2eb7si14390523ywe.332.2023.10.25.22.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:17:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iNlzEdEH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A96E9807BEDF; Wed, 25 Oct 2023 22:16:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbjJZFQa (ORCPT + 99 others); Thu, 26 Oct 2023 01:16:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjJZFQ3 (ORCPT ); Thu, 26 Oct 2023 01:16:29 -0400 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2894BB9; Wed, 25 Oct 2023 22:16:27 -0700 (PDT) Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-66d264e67d8so3711156d6.1; Wed, 25 Oct 2023 22:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698297386; x=1698902186; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xcRpgRwe25+UkQEfJDZGZHuA0KvrCaL/46MeTSbRYhg=; b=iNlzEdEHzVV58O1KuXP17K7ludN6tkRrZM8aIHmIv/N8/AV8cefmDYaOxmAQ3oYBG3 pu5WCtwOHiBAXp2r7ByggNgY5VxaX3/CsiN2BYC4YMJyc4JU+qzLycrMHluuIxwzSTbG rjM1BWxVpAK8z1wsAvKjohDGEWwL6pU2Vp+uB/yU2+pVSKYbN6HStDddiFFKptTPSZey w7TXzI599gIU0hTnrLWxu/DJK7eX354SSEiw1UXK9bD9KXV9B8eX/oKq/prsJHVLBzOu ctEATEZovdzsLhSJNYrZS399wxzcMw/mlyhQcsZL/f6Z8xYAGc+S/m6vgLouqhmKI1Ri bFqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698297386; x=1698902186; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xcRpgRwe25+UkQEfJDZGZHuA0KvrCaL/46MeTSbRYhg=; b=oyVqpLkoAOkBOjLjPVcL904q1awXPNOk/mYqCfBjvfmAYHqwEskQ1n/pI8ZEzOCGjE It6ul57AB7Re90UkK8cELk0S/iU7rFuvRg8OBVjgElJfDBGfG2vmmNTWa1wgd5YuVIYm GHR+3ZOVkUMsRV2OcF9+U/51utPfna+X1DPv6Vmwo7e4irxk/it2UfjhPbfxPw5ojY5/ 9AUZcBTFE4nYXaXAbvhrGSj0u0sCTyrnYcmrzt0D5+1AAeID9e2wSMK5Vtj3y+RDvxit mtFGCazvutP8Y4BOgV4ku3sN91KG+NvK2zL+9iQYkyfzRpQ6kyOo6giStgdei8PJvUbW XkXw== X-Gm-Message-State: AOJu0YyHOUmaqWvLGltb5CrGfqvCgn/By7iWsEvfOdVu/oyuVhW/UG4w wTIA5dOHzsp5M/EwubafH5FH8j9rg8DGdP5d16pWRw5qJmY= X-Received: by 2002:a05:6214:c85:b0:65b:1594:264e with SMTP id r5-20020a0562140c8500b0065b1594264emr17698166qvr.51.1698297385896; Wed, 25 Oct 2023 22:16:25 -0700 (PDT) MIME-Version: 1.0 References: <20231026100157.735d7dee@canb.auug.org.au> In-Reply-To: <20231026100157.735d7dee@canb.auug.org.au> From: Amir Goldstein Date: Thu, 26 Oct 2023 08:16:14 +0300 Message-ID: Subject: Re: linux-next: manual merge of the vfs-brauner tree with the bcachefs tree To: Stephen Rothwell Cc: Christian Brauner , Kent Overstreet , Kent Overstreet , Linux Kernel Mailing List , Linux Next Mailing List , Jeff Layton , Chuck Lever Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 22:16:37 -0700 (PDT) On Thu, Oct 26, 2023 at 2:02=E2=80=AFAM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the vfs-brauner tree got a conflict in: > > include/linux/exportfs.h > > between commit: > > 85e95ca7cc48 ("bcachefs: Update export_operations for snapshots") > > from the bcachefs tree and commit: > > 2560fa66d2ac ("exportfs: define FILEID_INO64_GEN* file handle types") > > from the vfs-brauner 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. > > -- > Cheers, > Stephen Rothwell [adding exportfs maintainers] > > diff --cc include/linux/exportfs.h > index be9900cc8786,21bae8bfeef1..000000000000 > --- a/include/linux/exportfs.h > +++ b/include/linux/exportfs.h > @@@ -98,12 -98,17 +98,23 @@@ enum fid_type > */ > FILEID_FAT_WITH_PARENT =3D 0x72, > > + /* > + * 64 bit inode number, 32 bit subvolume, 32 bit generation numbe= r: > + */ > + FILEID_BCACHEFS_WITHOUT_PARENT =3D 0x80, > + FILEID_BCACHEFS_WITH_PARENT =3D 0x81, > + > + /* > + * 64 bit inode number, 32 bit generation number. > + */ > - FILEID_INO64_GEN =3D 0x81, > ++ FILEID_INO64_GEN =3D 0x82, > + > + /* > + * 64 bit inode number, 32 bit generation number, > + * 64 bit parent inode number, 32 bit parent generation. > + */ > - FILEID_INO64_GEN_PARENT =3D 0x82, > ++ FILEID_INO64_GEN_PARENT =3D 0x83, > + This is wrong. Those are filesystem defined constants. Please don't change them. 0x81/0x82 have been used by xfs and fuse for years, even though neither defined a constant in this enum so far. Conflicting with FILEID_BCACHEFS_WITH_PARENT is not a serious issue, but I encourage Kent to pick different constants for bcachefs or keep the bcachefs constants out of this enum. It is a slight inconvenience for users that have bcachefs exported to NFS clients and upgrade their server, but maybe that is acceptable. In overlayfs, we encoded type OVL_FILEID_V0 and switched to encoding type OVL_FILEID_V1, but we still accept decoding of both types, neither of which are listed in this enum BTW. Adding fid types to this enum is not required. This enum is a place to standardize and for different fs to share the same fid type/encoding as is the case with FILEID_INO{32,64}_GEN*. IMO, the bcachefs constant do not follow the convention in this enum and their format is unlikely to be used by other fs, so they should not be added to this enum at all. Thanks, Amir.