Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7305180rdb; Wed, 3 Jan 2024 11:05:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4K4+rjrF0pdTU6iq8/IDJwf3E+U+2HmZObshvYdlIo4WKgvECFwsjsWPuwr79SsvLsyRx X-Received: by 2002:a05:6512:12d2:b0:50e:9d32:fa62 with SMTP id p18-20020a05651212d200b0050e9d32fa62mr1946665lfg.97.1704308711983; Wed, 03 Jan 2024 11:05:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704308711; cv=none; d=google.com; s=arc-20160816; b=IWVRFSvY79nT0N2RZ9A9/5qrwjs2O1rYCnRIOkvaH44ropHXO2kHkNqIgkLH/zZvAy cOXYbca+dnZQQhoRMsGWt4KllryB3fH0FRkjsys4hgIoASoAKXy31TjnuH1gx59+1X8s xhuG94k8H0Kt56YJrHXKZ251yLG4JxNC/BhUlfZoXZOxQVqGIMDLX6I6BQSU6uzSLcMr M/WIZjIruEWcitswMaA3UjomwACF6sMrLAnoXbCCyprkq5UhpopNmHbX0fujUv0H0ixj lqxQHE51s+iQX0R0bPeaHg6Eahjo62XI0Xn/mPJtoNTvMJXGtJWhKDOlCAmalFJu8yOn meAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=OKmjMzWb7Jj/X9j8Rv82hF1TJV7D5FriH7ZLTHY6fDQ=; fh=urpwA9qFkHTMgj2GGwgW1EOwrKQ3iojgE0lW0ov8vP0=; b=TxTe/5RgRT5Zdx/QNaSu9AOjk1IfwdMHvNH0TJa/80yo2c/AobyIuhPgkuzZvsPsR7 VTX+VElCM1vx9AoQWgEfgk5vLW8UG4l+qN2vo6bMW7iSCSdORI5tlKE57+ntnRVwulpt ZYhVJMXHfah011G1FGzgkGjbZLuElKkvqLtfLxcbpZli4M17VMwim7iPQOehX+gq/rvw ZgMFjsHD8z2M6JWsF/hnVMAsQSAVDKUcVXApnBj7lo/WCYA1Zo0vkqnGrDbgiwNqFKSq FGrhjBG55xZZ6ey30TUIN/GOsc7wvPCvK4fcypc8x7TUV3lqDBTr8KbGL4I3uWtITqFf RDyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ao4m+7og; spf=pass (google.com: domain of linux-kernel+bounces-15901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15901-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s28-20020a508d1c000000b00550dcbb7dcesi12240178eds.362.2024.01.03.11.05.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 11:05:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ao4m+7og; spf=pass (google.com: domain of linux-kernel+bounces-15901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15901-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B48C01F256E4 for ; Wed, 3 Jan 2024 19:05:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FC671CA96; Wed, 3 Jan 2024 19:05:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ao4m+7og" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C01CA1D526 for ; Wed, 3 Jan 2024 19:05:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a26fa294e56so729660966b.0 for ; Wed, 03 Jan 2024 11:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1704308703; x=1704913503; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OKmjMzWb7Jj/X9j8Rv82hF1TJV7D5FriH7ZLTHY6fDQ=; b=ao4m+7ogigntnvTeyIC59CGV9tn7ofZAVy1dd/7fCULOJRl5vI0JEC6tQLnl7e9eJg N/gz/zOXgU6Ib+H+s8fTUWfY96ECOWOOKO0No+y2hzF3VRBk+KqaSl4C9CMnXtYJSAf3 0r4fvMOXzciyDZdGx/86ehjkSunwpu5xHL/mc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704308703; x=1704913503; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OKmjMzWb7Jj/X9j8Rv82hF1TJV7D5FriH7ZLTHY6fDQ=; b=gHagB4Oa+8xl0es4Kqd3VnSuoCBImpZ+NYs6ospG3EcjcAqpaO6APnU0ym3si6lUsA PWZpcra7dBIdNVDGe6FBHiM5I3MCQ3BDvNRR9RikpOT7TIs2B493Zp5Uy+gfsMTsVpCe ld3kgy3TNwaeS0TixJzgxQI8AphKgQyXIFdS2OJdeNgOHwygYQ/gYLyMJjs5PbhVpFca iHmpSw17rKH7OcDg5ETZ/gAOq24BmX2tC6YnxCsmYgWeDgXgn4JGtRq7CyeTK13HGrdj hGXUn6jtcObSfKI0iI5pKvRgSdd9ZI5cDRot3C/Vgm2yjtJjZuJozsld/j4cckO2NzXb cu1g== X-Gm-Message-State: AOJu0YwL9CjqpRW4gWMDzjyMb5Sy/AGSPgVt0FHyAQ6844DFVWfnsw0T ZeDehPtCIgfJxM8GLgc95n7XozuNu1hCBa2enmEu73mmZHzfwEHj X-Received: by 2002:a17:906:ca1:b0:a23:5411:1c59 with SMTP id k1-20020a1709060ca100b00a2354111c59mr7955801ejh.35.1704308702817; Wed, 03 Jan 2024 11:05:02 -0800 (PST) Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com. [209.85.218.43]) by smtp.gmail.com with ESMTPSA id ge24-20020a170907909800b00a1c7b20e9e6sm13020469ejb.32.2024.01.03.11.05.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jan 2024 11:05:02 -0800 (PST) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a27e323fdd3so294206666b.2 for ; Wed, 03 Jan 2024 11:05:02 -0800 (PST) X-Received: by 2002:a17:906:b114:b0:a27:59a2:93fc with SMTP id u20-20020a170906b11400b00a2759a293fcmr5684885ejy.107.1704308701823; Wed, 03 Jan 2024 11:05:01 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240103102553.17a19cea@gandalf.local.home> <20240103135102.38352956@gandalf.local.home> In-Reply-To: <20240103135102.38352956@gandalf.local.home> From: Linus Torvalds Date: Wed, 3 Jan 2024 11:04:44 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] eventfs: Stop using dcache_readdir() for getdents() To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mathieu Desnoyers Content-Type: text/plain; charset="UTF-8" On Wed, 3 Jan 2024 at 10:50, Steven Rostedt wrote: > I think these changes are a bit much for -rc8, don't you? Oh, absolutely. None of this is rc8 material apart from the oops fix in your pull request (which my patch that then removes the whole function did *not* have - so that patch won't apply as-is to your tree). But let's aim for a tracefs that doesn't play games with the dcache. Basically, the dcache is *much* too subtle for a filesystem to mess with. You should either: - be a fully virtual filesystem where the dcache just maintains everything, and you don't mess with it because you don't need to (eg tmpfs etc). Everything is in the dcache, and you don't need to touch it, because you don't even care - the dcache is doing everything for you. - be a "normal" filesystem where the dcache is just a cache, and you maintain your *own* file data structures, and just get normal lookup etc ops, and you don't mess with the dcache because it is just doing its caching thing that you as a filesystem don't care about. and in both of those cases the filesystem just never has to really delve into it. But tracefs had this abomination where it maintained its own data structures, _and_ it tried to make them coherent with the dcache that maintained part of it. That's the part I hated. Linus