Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3421749imu; Wed, 7 Nov 2018 10:04:25 -0800 (PST) X-Google-Smtp-Source: AJdET5cEpHBZoxfu9pKSU9ZKE3CCql4LjPmMVv3AE46bDeR97HR54vwrAK8FUInmCL9KrebEQLQv X-Received: by 2002:a65:57cb:: with SMTP id q11mr1030275pgr.60.1541613865406; Wed, 07 Nov 2018 10:04:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541613865; cv=none; d=google.com; s=arc-20160816; b=BNFVe05DzqyIxA5o31LYuoNY9mMO7bQaS1Tv7NgksBLKqbxWvzbdB2vyAKMg/LQIrq XcofMRli6hcmip8mymrHTLmp45ogajJCkfZBbJTB40IERB9Pv/abpa/5EJq1TaISrIQs oFMVtxwmUppMqT47//9kmL69UqSE20glhnBMLiWpH+U1F43A482eD7ThIe5pVtup8gFO QLCcrC4/T9UbpoCg9PPvagV1n0pYdNcTQFVANocgJwwYEZhwsyC7Q7GZk+Qd65bmjl3s iWqebH4TPszJkG2QO65j151c6qyqN2tbWKIEFDSc/iXF3fsrjKTUxuc+EX5FRxn35IHS r8AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:user-agent:cc:to:from:subject:date:references :in-reply-to:message-id:dkim-signature; bh=5c6nkgpCvsjPHI2lAEAZ29rfXiAahTvEwXyfklBliLc=; b=FywrcocF42K+ZUJbRxCsg2FDPwWpFENobym5I1uB2EBealBqAK1OspzW/q1BvfmbQ4 dNvkCd/6ppYnagY4QFLIc+czeE38wbVghO9VqElH8IzkVm1Da5se563fo/HOOfXnmimI Q/nQdY0EmKaYywMee4Ww4kMDOd2v2O/EjSmcO6wKZTy4FK/vJUMrEDAClbtJOxJ7vHCJ bvb47i5paDHAOSltrKo/khwsOmWLfpaeSsnUm7ObuBNm1/ZqP9UrvexDRJPcdPqTxFCl 0IrSO+vlcgFvxrL5Ka16KFXksSgdNpxMBuVu28dG3rnaSS5VxNOp3jJ41ebjioa7pVfB /y7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=twosheds.20170209 header.b=sNzkE7x6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u25si1188488pgm.532.2018.11.07.10.04.10; Wed, 07 Nov 2018 10:04:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=twosheds.20170209 header.b=sNzkE7x6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731136AbeKHDa1 (ORCPT + 99 others); Wed, 7 Nov 2018 22:30:27 -0500 Received: from twosheds.infradead.org ([90.155.92.209]:35630 "EHLO twosheds.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728166AbeKHDa1 (ORCPT ); Wed, 7 Nov 2018 22:30:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=twosheds.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:To:From:Subject:Date:References:In-Reply-To: Message-ID:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5c6nkgpCvsjPHI2lAEAZ29rfXiAahTvEwXyfklBliLc=; b=sNzkE7x6arDD2o3Yd/GvrAbdW xQCAJjfl74S2rKBenF9xWg3ORhC/wTLdd5iCAnaBcsx/0LYz6MSDr2F+YWdDWeXbeJdUdiriniBve vM9EY6hBldDZ+DA27N0pEX4AKyl/lIW05gnvCmFu/WTndMXD/4luVvJqrNf+jCRPhPcySW3lta8Bi 4yw5O0G2Uw+7f99ZWUfWRJpRmOMnRmUC7dzweKvp27lQO+QrwLRp1A6ekigVNPgZIk9C3DL8dLYj1 YWYVUoTSPioCQ87RVEA4xBsK6z1G+HvYi3bv+fIdv3CSIkKApZFvCpX/Xd5RrBTwmfgPagh52PBy6 kuoUFGQuA==; Received: from localhost ([127.0.0.1] helo=twosheds.infradead.org) by twosheds.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKS6P-00AboG-A8; Wed, 07 Nov 2018 17:58:53 +0000 Received: from 213.205.242.122 (SquirrelMail authenticated user dwmw2) by twosheds.infradead.org with HTTP; Wed, 7 Nov 2018 17:58:53 -0000 Message-ID: In-Reply-To: <20181107173303.slnb3i2d6ufaonp7@zorba> References: <20181106214928.40020-1-nkela@cisco.com> <921b0f78cf67d7307a0555e1fd6f2c2976310adc.camel@infradead.org> <1e4c066d1896e2a0b8b146253d34d05cc4f9ab36.camel@infinera.com> <8b08e8b992093453bb2b9caff8cff08c.squirrel@twosheds.infradead.org> <20181107173303.slnb3i2d6ufaonp7@zorba> Date: Wed, 7 Nov 2018 17:58:53 -0000 Subject: Re: [PATCH] jffs2: implement mount option to configure endianness From: "David Woodhouse" To: "Daniel Walker" Cc: "David Woodhouse" , "Joakim Tjernlund" , "nkela@cisco.com" , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "xe-linux-external@cisco.com" User-Agent: SquirrelMail/1.4.22-21.fc27 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-SRS-Rewrite: SMTP reverse-path rewritten from by twosheds.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Wed, Nov 07, 2018 at 04:12:14PM -0000, David Woodhouse wrote: >> >> > Yes, this may slow things down. I am not sure I agree with the impl. >> > either. >> > Could one not make cpu_to_je_X/jeX_to_cpu a function ptr which is set >> to >> > a func. with the correct endian? >> >> On x86 retpoline would make that quite slow. > > Is x86 the largest consumer of jffs2 ? Certainly not. I'm not sure which architectures do have Spectre V2 mitigations which make indirect branches expensive now... perhaps there is no intersection with the cases where we really care about JFFS2 being CPU-bound? -- dwmw2