Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2655450rwl; Thu, 13 Apr 2023 09:09:17 -0700 (PDT) X-Google-Smtp-Source: AKy350aFm/Syo1HEp7PNxU1SlQaVbec3reZeoQNusbL4cuWZ4NC1G9dpTpKcZzYu1NzRCh/7Uugp X-Received: by 2002:a05:6a00:23c1:b0:638:b77e:4a0e with SMTP id g1-20020a056a0023c100b00638b77e4a0emr4573865pfc.16.1681402156625; Thu, 13 Apr 2023 09:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681402156; cv=none; d=google.com; s=arc-20160816; b=HUGHM+6Zlb0hI5IQhsRXmr/Uv9YqeocozNk7pZ8B8a0q8JP+Hux35uIDXsCebx//Pu G/CEFgHpsjxTK5+tapLalWLPnIR+Y/+XWmH2AhIwuJP4QjtoiRlKK1hcC/xAAysjYqAC KSF++RdFieCcUCgp3SMH97bVDeOgUvHhxYBtA51u1h48w3wiDZg2z17oNfc+WLKd5FNI 1fNE4J5aJ5cmUbbE2O40d7K0yz+o6SGSr1ShxIRyI9Hbw2kxaM9A8y9ikBYHUQpbtnSs 7y4ZdyIW0K7osS5EzHel1c/QAVgrnaVhKbQny87nSQaPHqMxzdUFcuPDGgrOk5r4ieQ/ veqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WNi2GciAN17G8FODYRzzVrJvT25fweX5V02+JdU0gF4=; b=KTzPmc6lCZMP/vvf6gegqyCcjl0fbrGH22nxBxfp1WZZB7q5d4SGvGkRvcVfUCY8yi VjxZBTiqmfQIoTqLYOQLujfVagz39MfyxaedGc7LPgba8l3xyBqlSoQfE8TLN7/XOrLk ID38EqRtH3HIpSzhcnwzWktHdHLEBDl0IgR6HfDnfX9AwJ8ZPEWqC8n8mfymqeR1sbi6 X7MKMqRLDOYkXRoJdlyxLBEwzyelAIk1iRlYRHCy3p6IIvv9m/bZtUXVYUYlX6DwOpqj IQ5aveCqzalGHMqs89PMrQP0RArHsZdNMex2JcQ0CIwPW3e6e6+MOqv3f6cD4GbDBSnk CR7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HvyfpSdd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a63d142000000b005139e8ca7b1si2572474pgj.494.2023.04.13.09.09.02; Thu, 13 Apr 2023 09:09:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HvyfpSdd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231540AbjDMPth (ORCPT + 99 others); Thu, 13 Apr 2023 11:49:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbjDMPte (ORCPT ); Thu, 13 Apr 2023 11:49:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 587BD9EE3; Thu, 13 Apr 2023 08:49:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EA5F16124E; Thu, 13 Apr 2023 15:49:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE71CC4339E; Thu, 13 Apr 2023 15:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681400972; bh=6EtGrpXDbQ4r0pEsa7wO8I5/ItrKduaR+3mSvDeYZFY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HvyfpSddbGVN4MazfdXwOhm49r6p/SUgBMpuz/TtXIalWwZWLMzhs4Faw9glIsKPg n06gkjBsr+E8c7FqhgMiKlmHE6m9/ZKGpcMGWHPwCjW3DeMeR2OfiPL+yUPGiFq4ew o5yX2QGI7pCb8okXM9U5YUvI2n762nzCVta2fq3tRM2ag1/5/5jSCRPh4qlsegsoAZ T+kP/JJr1ukHAP53lA2nfF2cawo1W1nTXn5l8MokfAu/BVmspdpJQZfwUBFo159Dm2 Abdm2cQ56JPqu+USuxD65GGHHwpbhD3YqVlRHQ2JhHFhpw9PA7VSxu9ManFYEc4VYg tjReQz3+9L5lA== Date: Thu, 13 Apr 2023 16:49:27 +0100 From: Mark Brown To: Gao Xiang Cc: Christian Brauner , Gao Xiang , Jingbo Xu , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the erofs tree with the vfs-idmapping tree Message-ID: <4f9fdec2-cc2a-4bc7-9ddc-87809395f493@sirena.org.uk> References: <20230413144651.3519980-1-broonie@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="n6RZDYGuxrYvmwhK" Content-Disposition: inline In-Reply-To: <20230413144651.3519980-1-broonie@kernel.org> X-Cookie: Idleness is the holiday of fools. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --n6RZDYGuxrYvmwhK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 13, 2023 at 03:46:51PM +0100, broonie@kernel.org wrote: > 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. No, that's wrong. This: diff --cc fs/erofs/xattr.c index 015462763bdd5,a04724c816e5f..0000000000000 --- a/fs/erofs/xattr.c +++ b/fs/erofs/xattr.c @@@ -483,12 -517,28 +513,25 @@@ static int xattr_entrylist(struct xattr { struct listxattr_iter *it =3D container_of(_it, struct listxattr_iter, it); - unsigned int prefix_len; - const char *prefix; + unsigned int base_index =3D entry->e_name_index; + unsigned int prefix_len, infix_len =3D 0; + const char *prefix, *infix =3D NULL; - const struct xattr_handler *h; +=20 + if (entry->e_name_index & EROFS_XATTR_LONG_PREFIX) { + struct erofs_sb_info *sbi =3D EROFS_SB(_it->sb); + struct erofs_xattr_prefix_item *pf =3D sbi->xattr_prefixes + + (entry->e_name_index & EROFS_XATTR_LONG_PREFIX_MASK); +=20 + if (pf >=3D sbi->xattr_prefixes + sbi->xattr_prefix_count) + return 1; + infix =3D pf->prefix->infix; + infix_len =3D pf->infix_len; + base_index =3D pf->prefix->base_index; + } =20 - prefix =3D erofs_xattr_prefix(entry->e_name_index, it->dentry); - h =3D erofs_xattr_handler(base_index); - if (!h || (h->list && !h->list(it->dentry))) ++ prefix =3D erofs_xattr_prefix(base_index, it->dentry); + if (!prefix) return 1; - - prefix =3D xattr_prefix(h); prefix_len =3D strlen(prefix); =20 if (!it->buffer) { --n6RZDYGuxrYvmwhK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmQ4JIYACgkQJNaLcl1U h9DoVQf/a2i9JBz4jgO0Nm2RRd4s79fyZYmzvrz77Elka3NqN6dIKk6goMUfmjwN XqSXmYdFVHuHWULh59ByAhpXh2TWkrkkprDYSj+hCjgFXiwOzpcZU3zrLq0Vm53E QBIarbIE7M415G4ccCP8zvQSqVt2GmcvB58MAuhKvOM7W54wtIvYpu+IUw/u0Xvd c/NvMOajnaadUJq7T++oSG1HY8CZ+WfObNwE5nmNBHTYLhdRMCcjxJLLuPMdkDyl m1dAh776MzvEOUaiobrRikkOqScMTE8pXBmrWJ8wPdLOcBgClI8LCMiHil2cUbrr zEQDr7x4FnKbZxXD8WXThFuSoaS/aA== =sE9W -----END PGP SIGNATURE----- --n6RZDYGuxrYvmwhK--