Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp268832ybf; Thu, 27 Feb 2020 20:53:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwhC6DkDITIzNWATcDxsNVMauIx1bYRWY+J5HijcCstc65US2qk3zjgw5kQ2mSPn/l3FGHx X-Received: by 2002:aca:ba55:: with SMTP id k82mr1855991oif.94.1582865601163; Thu, 27 Feb 2020 20:53:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582865601; cv=none; d=google.com; s=arc-20160816; b=eeDwWYFLT4pA0kBj3uj7oKLrARTipzY3K0oloQTeStrUWVDoXuX2/I/dwVHIZHSFK7 Ag1i9REltAdA52v7bcVUehSxJdG5HIVwAaCT3BNjQi08vbQC/YOYlMIOowHBQpXOFBIy 5XYlXMPDOb8eN5o4dH81pH2JPQwpB54wL4R8pBOFpHZl5T7wL7c4Ieeiq+1q2zLwlMlv 1XKay2mQpsUb7weFqjzybYVAVspsd/ybs1porowP+eUrsdOFIJwfjBHRxBMuCFmAEQNU 2OeTe8afsDmaxWnD9aazio6CoYCjN5ZNTUAN1jlnI07hfov4S8bA650OPT3WTPv9UQ1n 86OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=BrRUWD7VlpqiUamC0p/mm3L/7NXENRE4TufktzjO0yQ=; b=wKlNhyuifSix7gLnpON7z+zD5Uj0wojzxK0cWFkVexbXTVn04ZPyMzexPO2H7jRKLW AIFEsMg1ZKbJxKfq6V+z/NUKWxRre8Ll5BecqVUkqN57UY0pRPRpucKjtYy4DFiZ6SAT h8e9pPgDDeLY//kyoG8DWq+qcFrQoEsHBT0dVn7GDwWmiSu+n3GJa1kNrTQiZ/f/Ea6A MpVOsqvZW3rwxwqLE32VfuTw7saXFQ+bcPbj7Xce0Um72crwOkndFTd6oSo2wxj+HXWZ JWl5IHeLSwySYlRj4J7LmfAdjE7UrN/sQBHqBLWqFvF5fOWnPEq0aLzH2zFmMhm3jlSm sJlg== ARC-Authentication-Results: i=1; mx.google.com; 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 7si1090879oiy.68.2020.02.27.20.53.09; Thu, 27 Feb 2020 20:53:21 -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; 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 S1726148AbgB1ExF (ORCPT + 99 others); Thu, 27 Feb 2020 23:53:05 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:53784 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgB1ExE (ORCPT ); Thu, 27 Feb 2020 23:53:04 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j7Xdv-002EAr-AO; Fri, 28 Feb 2020 04:52:55 +0000 Date: Fri, 28 Feb 2020 04:52:55 +0000 From: Al Viro To: Ian Kent Cc: Matthew Wilcox , Andreas Dilger , Waiman Long , Jonathan Corbet , Luis Chamberlain , Kees Cook , Iurii Zaikin , Linux Kernel Mailing List , Linux FS Devel , linux-doc@vger.kernel.org, Mauro Carvalho Chehab , Eric Biggers , Dave Chinner , Eric Sandeen Subject: Re: [PATCH 00/11] fs/dcache: Limit # of negative dentries Message-ID: <20200228045255.GJ23230@ZenIV.linux.org.uk> References: <20200226161404.14136-1-longman@redhat.com> <20200226162954.GC24185@bombadil.infradead.org> <2EDB6FFC-C649-4C80-999B-945678F5CE87@dilger.ca> <9d7b76c32d09492137a253e692624856388693db.camel@themaw.net> <20200228033412.GD29971@bombadil.infradead.org> <769be2c66746ff199bf6be1db9101c60b372948d.camel@themaw.net> <5598cd24defe490016479518c7344201f6dfa0eb.camel@themaw.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5598cd24defe490016479518c7344201f6dfa0eb.camel@themaw.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 12:36:09PM +0800, Ian Kent wrote: > And let's not forget that file systems are the primary > source of these and not all create them on lookups. > I may be mistaken, but I think ext4 does not while xfs > definitely does. Both ext4 and xfs bloody well *DO* create hashed negative dentries on lookups. There is a pathological case when they are trying to be case-insensitive (and in that situation we are SOL - if somebody insists upon mounting with -o make-it-suck, that's what they bloody well get). Casefondling idiocy aside, negative lookups are hashed. On all normal filesystems. Look for d_splice_alias() getting passed NULL inode - that's where ->lookup() instances normally create those.