Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7384217rdb; Wed, 3 Jan 2024 14:17:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvIBn6L/wvkwH5pmlyJX+LwfidDLr2EpgviLplobT/Snhqh5fY9DzG64WDgq07q9eKIrdc X-Received: by 2002:a50:d7d5:0:b0:553:7a1c:285a with SMTP id m21-20020a50d7d5000000b005537a1c285amr6581658edj.73.1704320275165; Wed, 03 Jan 2024 14:17:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704320275; cv=none; d=google.com; s=arc-20160816; b=hT/K1e+gjTvp9d8Q41stf3+UD0xy3Li8tfa6iwtno+0gjSDJSIEFMzgmhA6RAkJyyq LySqUgFru81eqdg6IE1/pE9CmEjtOxFz7vVjQTbQvHEt5HzEvDXaBticV+5yGYnN6WWl UWt79MYS05jXTnw3lkaWFucWvw875dnv7FzlJlz3hAIjCDK+/dQmMp2O8CMYwkMIX9J8 x52wxjt+mGNCB4eEzWRW9u+xVBidFQfWNPxzFJcgZ2ZEhxs1l72XrsjduU8A3xzJrkG5 9XOd4T69XtFfaqHMu35Y5x2LFm5ukcJJK1IkASCYZpmTf4/ybdWX/oJFXtUtJThiE/Tf gaQQ== 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=ggectDD1sVFfFuxF/ttgx0s4Ggo2HATlFxfh+QjmL3o=; fh=tur4q4aZqzBlhvh0f1bQlvg1H88BKx+Eg052fVQGsOM=; b=V4twmFhSveE5Sjx4AELRHj526JYrqEv9DuTIuqnYl7/8rVZ+4V2ehh7d9gMoCyA0N2 D76aUfJl8sBkO0ENMxsLlljZzfu2n7vAJozi2xdd9fnwub0XIkY1lODjBjOzaBrJYp+F te9TcwgFGyi1wMJpcnPrbBs4tvU5HhC5q30uN21H9H/xcQ4LLcAVuEB/+EVP6d09k5c1 KXVB32X8RI8xE0CzjMh5Ra/xF9PkXXhcqZZKUll2Uv76PlHZ4hGy5qiEW8AgpBlMBdrn +8fb4kqtV+urPBkbyq7lAFCb/UYQykJTGsiQ9erFSNrtsTFEb8+j6qPs4NOY7tGtzGNa IWaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=CfoMUGTw; spf=pass (google.com: domain of linux-kernel+bounces-16062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16062-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z65-20020a509e47000000b005534a8b4e64si12666210ede.252.2024.01.03.14.17.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 14:17:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=CfoMUGTw; spf=pass (google.com: domain of linux-kernel+bounces-16062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16062-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 E50DA1F25F12 for ; Wed, 3 Jan 2024 22:17:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B2A51DA50; Wed, 3 Jan 2024 22:17:45 +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="CfoMUGTw" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 DD62B1DA38 for ; Wed, 3 Jan 2024 22:17:42 +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-f51.google.com with SMTP id a640c23a62f3a-a28b1095064so82114566b.2 for ; Wed, 03 Jan 2024 14:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1704320261; x=1704925061; 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=ggectDD1sVFfFuxF/ttgx0s4Ggo2HATlFxfh+QjmL3o=; b=CfoMUGTw2GdwxyRQnnMtqmN+XUJ6zHHXhmB4U80Ncv+sTDlJQk+QKtDL1TRwjstHye yGKE+JpjSZ+cUFpg4kVzScq6H37aspIuLV6u5kly4X5M/ZjmKiqXaxf2tVt4V0pSoCaK X7CGIsEFxKs0MFeRF6j6rvB5kzRFuCPalIgTY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704320261; x=1704925061; 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=ggectDD1sVFfFuxF/ttgx0s4Ggo2HATlFxfh+QjmL3o=; b=qBl6Aj03w1dFagS0erpl7vBL3aKeBau12/dOOXGschNr9DzfrR6tvLx9hhgt4i0E2N xjPIhkxZyh0BAv847N6YoqnJmDbLcVw2x8MNi5rR8qzGsu/jb3B0s3g4FOPRwtnuJNAG ZvuYO4kNedpgXA8SCveKX1JR6Ipzl5GI+iexM13nsZNIJX0LwjcsutbYK6leAopTV7fP +NXiFqWbyNCkdpBj4RDn+Kp5o9CXxq75l/ooBMcgU4uoqSzFGvxR9LnpOZEujZT6YiwM 6ZuZW8YYBkCWCpH/Yvjmob0L1Sald8tr5rEA1MR59QoEqfT/4m6bNYWL5yrWNwLaEAI3 Rf7A== X-Gm-Message-State: AOJu0Yy6sZ6CliJXbkZLUeM3weK5uzTu4pPRyOtvZJOO0OA0WR1wWwNg LUQHHlnPPuOLKbdrdkxKugFBKnxUIgh+qKn/cM09uRfp+DkFVMA6 X-Received: by 2002:a17:906:7154:b0:a28:1c2e:7bee with SMTP id z20-20020a170906715400b00a281c2e7beemr1161689ejj.282.1704320260963; Wed, 03 Jan 2024 14:17:40 -0800 (PST) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com. [209.85.208.42]) by smtp.gmail.com with ESMTPSA id fg8-20020a1709069c4800b00a1fa7e39957sm13206990ejc.136.2024.01.03.14.17.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jan 2024 14:17:40 -0800 (PST) Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-554fe147ddeso7929199a12.3 for ; Wed, 03 Jan 2024 14:17:40 -0800 (PST) X-Received: by 2002:a17:906:73c9:b0:a27:db5c:8a4a with SMTP id n9-20020a17090673c900b00a27db5c8a4amr1618752ejl.213.1704320259797; Wed, 03 Jan 2024 14:17:39 -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> <20240103145306.51f8a4cd@gandalf.local.home> <20240103221444.GM1674809@ZenIV> In-Reply-To: <20240103221444.GM1674809@ZenIV> From: Linus Torvalds Date: Wed, 3 Jan 2024 14:17:22 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] eventfs: Stop using dcache_readdir() for getdents() To: Al Viro Cc: Steven Rostedt , LKML , Linux Trace Kernel , Masami Hiramatsu , Mathieu Desnoyers , Christian Brauner , linux-fsdevel@vger.kernel.org, Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" On Wed, 3 Jan 2024 at 14:14, Al Viro wrote: > > On Wed, Jan 03, 2024 at 01:54:36PM -0800, Linus Torvalds wrote: > > > Again: UNTESTED, and meant as a "this is another way to avoid messing > > with the dentry tree manually, and just using the VFS interfaces we > > already have" > > That would break chown(), though. Right,. That's why I had that note about So take this as a "this might work", but it probably needs a bit more work - eventfs_set_attr() should set some bit in the inode to say "these have been set manually", and then revalidate would say "I'll not touch inodes that have that bit set". and how my example patch overrides things a bit *too* aggressively. That said, I think the patch that Steven just sent out is the right direction to go regardless. The d_revalidate() thing was literally just a "we can do this many different ways". Linus