Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4189749ybl; Mon, 9 Dec 2019 06:54:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyvq3p9JvORHrwbVU3SvetuwlsNk8RMVDN8A5pSj02sOIKGabHHPG38RCWsAx73/WjPwmWX X-Received: by 2002:a9d:453:: with SMTP id 77mr21182443otc.307.1575903289241; Mon, 09 Dec 2019 06:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575903289; cv=none; d=google.com; s=arc-20160816; b=hgYxNL0oiPANnWSTTd5I7R6ZWLotUy7ByLn5MKQlKadYjHAwWKEc8clJT0GNkXotAx sdXGPeKLb84PirJwDuzHJemOe6hLAI5K3I+7hnAJ4yaf9HHGthN8Hyiex/gWqWaUWz1O cF4p9cX2IhWlicjredmy0rtJYH6Yt7+ehB840n9aFHMgIUWdcYUvZTm9Zb0Csm97sp+S pWtFIzG+xUsO0jJM23HDXFV4F7NqCnrA/o1cRNt2a4sfm5t1W/pAoSU3f5ic1yebxKht itLrS/+TBYGUoji8iGlIAe5aOUqhRJnSL+pxq4yz2hB6OaKCLywLO2TkB9UutvaQXl2/ wSNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zXCvNPBFfW6TtfKXO5Yk7VgQZcEUj3Or8FZH8YnZ5iY=; b=HoMlyRcn6qYKDmwVMWZr7lY0H52PSZRUCIS+u/DYY6oeQ09l5JWUx1xF+e3caQgd3H 3CW2eQN3SbFD11j9pNatxyx9ZLF3/7prWA/85/FlqTprDCtiT52vW5Z+hiuoTP2ALRO2 qny0TzixI+P1Inw30h8s9BeAz7vsCQvAIBVByq7qyuXj7WOseKRAo6J7Mhx4uQKOMmRc G62sjYFxni1ynGWdEoYr3rVKaD9L8/cTBo4MM2GND3cqfAtZiekWLNPe207W+9HqkXpl sLHvxxd4gvw8jPHg4UHZMR5wPcRLc1RqLwfHj7fCnQ6HS/fynGA8jDyE9/sMPzVmOiIQ YSqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b="B4Jzw/Ai"; 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 q22si13485933otm.304.2019.12.09.06.54.36; Mon, 09 Dec 2019 06:54:49 -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=pass header.i=@rasmusvillemoes.dk header.s=google header.b="B4Jzw/Ai"; 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 S1726718AbfLIOyI (ORCPT + 99 others); Mon, 9 Dec 2019 09:54:08 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:44670 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbfLIOyI (ORCPT ); Mon, 9 Dec 2019 09:54:08 -0500 Received: by mail-lf1-f67.google.com with SMTP id v201so10901350lfa.11 for ; Mon, 09 Dec 2019 06:54:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zXCvNPBFfW6TtfKXO5Yk7VgQZcEUj3Or8FZH8YnZ5iY=; b=B4Jzw/Aiu3fSn3JF/ZLYnhir6fFzn6dD+MZZbz9Pe3E6F+8fFxwMniLnAcpy4ujmNe ePgzHV0FFAKuT8AKRgx4vVXFtvLNOx0HkZmnG3GYtiW6EwfAcOoL6MaaNbAr4RtP6Z62 +xJBFUSCmYf6Ib5ZTNn6KkIdK5xtigBddx58s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zXCvNPBFfW6TtfKXO5Yk7VgQZcEUj3Or8FZH8YnZ5iY=; b=WlstWxjLYDye78h4vIxT3r9yA1Nf6HErmZ/bpZR705CXn2B9XD+3d76X7KZXzh/oJl IU6smb7oaROl/DKZ+EAM6Xof1V1xKe3ifoYfkM3hEwRTPeMY4sEQBhon5H9eR5nHO0ci l11X6Nw7R+mG+jp4U+n1p32fXRd+bFFeZLjVuYGMi9fDOpWaASdd0J4pz7EGBAWQCRSH dGHHAM9tBLRgVqDMCDwnJQC6/6VdMkeQNwZOiNL+AFxvoKKDr0CICSQODZG0FR76DMax 7qVRkTyEYk7Y63AXwoUycBbMtgXpEyOAApsAuPIrMoGU/KX4fTcVoVGKZ0y0uFk/FZLh BCkA== X-Gm-Message-State: APjAAAXz8+ieJQBIQmtt5YiDgscArv3YWIBc0waH1CxEkBY3UDzJrj5Z bc6UzNBhUeJDXuXHZ0hCLLWfSJz6rpXha9iL X-Received: by 2002:a19:f00d:: with SMTP id p13mr16200102lfc.37.1575903246184; Mon, 09 Dec 2019 06:54:06 -0800 (PST) Received: from [172.16.11.28] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id w16sm11170372lfc.1.2019.12.09.06.54.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Dec 2019 06:54:05 -0800 (PST) Subject: Re: [PATCH] fs/namei.c: micro-optimize acl_permission_check To: Alexander Viro Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191113214521.20931-1-linux@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: <8385b895-0269-236a-665b-244a386167ac@rasmusvillemoes.dk> Date: Mon, 9 Dec 2019 15:54:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191113214521.20931-1-linux@rasmusvillemoes.dk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping On 13/11/2019 22.45, Rasmus Villemoes wrote: > System-installed files are usually 0755 or 0644, so in most cases, we > can avoid the binary search and the cost of pulling the cred->groups > array and in_group_p() .text into the cpu cache.