Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 461C4C678D4 for ; Thu, 2 Mar 2023 18:43:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbjCBSnq (ORCPT ); Thu, 2 Mar 2023 13:43:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjCBSnn (ORCPT ); Thu, 2 Mar 2023 13:43:43 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CF73193E2; Thu, 2 Mar 2023 10:43:43 -0800 (PST) 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=UhgtDiIvQRC30uro2NxhIrm3LooGaC9VAn5v4TlqZd4=; b=RTWIzkq6JIvSi0fRSUYy/OJtJs pn2lQ89X/u1rS/QAF2QvFZ3SgcvQt/x09TiRTByvKYO+pxE/Zn9y3hMXsOi4kKssMWAqRHv7QJfgX k6LozQQBAtCcG2ENQZQMf8NUgXi3+x2uMadiuewIdvmGexiqLXW126fn9Dh0jfCVQkz54vYM3YC0J XlSnwzmjkmvLhbLmx3zmonAWBkgGICcRltB0JgY/Ux7YDrQIud+NX9YT56yhhdjirvKn6eiym3rjU zpLzrCrowanWN4V5arUZAz1rXhIX2HSSiwZC6pKjxnwr3wwFOM94muCU5RMqsHXjWsqCCjpD8Jtwm m8ppjQgg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1pXntz-00DNEo-2o; Thu, 02 Mar 2023 18:43:39 +0000 Date: Thu, 2 Mar 2023 18:43:39 +0000 From: Al Viro To: Mateusz Guzik Cc: Linus Torvalds , Christian Brauner , serge@hallyn.com, paul@paul-moore.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v3 2/2] vfs: avoid duplicating creds in faccessat if possible Message-ID: References: <20230125155557.37816-1-mjguzik@gmail.com> <20230125155557.37816-2-mjguzik@gmail.com> <20230302083025.khqdizrnjkzs2lt6@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 02, 2023 at 07:22:17PM +0100, Mateusz Guzik wrote: > Ops, I meant "names_cache", here: > names_cachep = kmem_cache_create_usercopy("names_cache", PATH_MAX, 0, > SLAB_HWCACHE_ALIGN|SLAB_PANIC, 0, PATH_MAX, NULL); > > it is fs/dcache.c and I brainfarted into the above. So you mean __getname() stuff?