Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp13687rdh; Wed, 22 Nov 2023 16:19:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdSC4y0DXe0MmJ9jHgYVHW0pH1nvBtHyfBkow0JgS2oi9vq9RD9YiX2tsjl8B5hwD3/BhR X-Received: by 2002:a17:90a:1903:b0:283:21d3:11ea with SMTP id 3-20020a17090a190300b0028321d311eamr4296025pjg.0.1700698765937; Wed, 22 Nov 2023 16:19:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700698765; cv=none; d=google.com; s=arc-20160816; b=KQbBeHzWR9cE+owfW21kcnI1HTw/tOaGFypzBinkBEMabucEHuQwkSlYwPLPil3hS6 y7OnaEUzD4WPtf1joS/ICgFgi9qXQ5cXGxwsFJ5950hh2ZQujzy8n1jE4s/f0n1pg7xo XEjb4I2z9Lmdvisnm9tUy0j77j40z3pbyrNPoctcxcgG3aQw9hffNwrosB3J9hthU17U 1AwhtEg/bS/UTicgWx098C8Q4F+ujND6aH5XJNhEfXKO0qznlfHTZsOZGTdrwv9lRrh1 peNdJcxY009wsJMifS6cymVFtsUE8Xeqta+Og0UGXM1bdjHiPQhXLQvJHf4oXsX9ma11 Ns+A== 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=/KrFqq6blt1lo7Kf9Cf57uU43ncdJqUq9kktaS62s5k=; fh=oZMNvp4qyIXEg5p85XBmLVT15KQ72eRo7/sA2jn3m74=; b=QsNgLjazMnP6en0WEt9JT72nKiLKY09hn6S0xOzlBtm8GMusX4LGn9DBbccvR6YGwv a0l7hSgflU4RXsZmlhUv+axPY5lO//jza9TLYLm+BmVoPcVP6zVCmgLDS50+8t8IVAtJ y3vCj/qAsHnL9se9MURYy4KjMHdoWRUSwWmwj3gXQOzRkTY26Q0Do5883MsEpV/6yQOk vS+vK/9xxsJdklzGLl5BpzbcY4oo1JYKezwNiewZuB4/P6vJZZYchK3baug47LY1d0Rl giZzJPLuQcYv86oAkQqWcB44h1Sksk0RVSwrcsiLGL/R8hFHMZ9vbjWxRdlauN6NRkdc VsCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EJky0xgk; spf=pass (google.com: domain of linux-ext4+bounces-94-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-94-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t3-20020a17090ae50300b002802d12083fsi177653pjy.54.2023.11.22.16.19.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 16:19:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-94-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EJky0xgk; spf=pass (google.com: domain of linux-ext4+bounces-94-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-94-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 83D6B2816B1 for ; Thu, 23 Nov 2023 00:19:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6772A63E; Thu, 23 Nov 2023 00:19:21 +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="EJky0xgk" X-Original-To: linux-ext4@vger.kernel.org Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 784041AE for ; Wed, 22 Nov 2023 16:19:17 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-543c3756521so451161a12.2 for ; Wed, 22 Nov 2023 16:19:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1700698756; x=1701303556; 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=/KrFqq6blt1lo7Kf9Cf57uU43ncdJqUq9kktaS62s5k=; b=EJky0xgk2GYWbBh5GeWhNGifrsZa+aw6znG5la1SOCQqVEpkEb4v3IMKgb+hdQcmVq 7Ds/LPPcA9aWIVl5flUrRux+cXotIZ/8kAtSq7t1TCEVJdtK1HiF3/gmfp5Arc/Hg4Qz O2P35VKdqIRcGI7YCIB+IdXqXpDDUzhMHcJhs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700698756; x=1701303556; 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=/KrFqq6blt1lo7Kf9Cf57uU43ncdJqUq9kktaS62s5k=; b=oe4hlXU92sDWgbpbyn3QdmgE5M+ItBSQ8plBniOwd9H2BqcWVEbRGBeM+TYO0ZDigD B0jveJRZrr2eQS8tz2RMb8GRFrCsWEwpeLTF11i9FXTt9uO4y5+9EA5rFKT5s6p7zyd/ uN+YhcQIinxbcaLUP4hw3cu3iJ/v2OIynfL0PNUksV7NfQ5ACXE6CTGBFyoASgfw/+eT iFsv6z0JzFtgF2hi27quBWuYLuqPVcRvRrcQOn+WqJeyaECiSSL+mB5dmoieVEN+6Tzn zLxWIM/HKgoodSZ0ktKFc6oPfxn2H4wp7VlZsguu25z/z+Big9csIFhs13CtFFnwvDsl 3x/A== X-Gm-Message-State: AOJu0YzwQ3zf+5zUuW+XaMMadKCaJDjODJ4XuXc4rCt3ZQz6k7Z7Dd0k HC9lj9ebQw7jMfFXPP+FuHciMerYI8l5Is5SDV3Zp1r/ X-Received: by 2002:a05:6402:3584:b0:548:5605:45c1 with SMTP id y4-20020a056402358400b00548560545c1mr2689556edc.21.1700698755851; Wed, 22 Nov 2023 16:19:15 -0800 (PST) Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com. [209.85.208.50]) by smtp.gmail.com with ESMTPSA id c3-20020a056402120300b00530bc7cf377sm39044edw.12.2023.11.22.16.19.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Nov 2023 16:19:14 -0800 (PST) Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5441ba3e53cso462037a12.1 for ; Wed, 22 Nov 2023 16:19:14 -0800 (PST) X-Received: by 2002:a17:906:cc:b0:9fe:3447:a84d with SMTP id 12-20020a17090600cc00b009fe3447a84dmr2475163eji.23.1700698754069; Wed, 22 Nov 2023 16:19:14 -0800 (PST) Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230816050803.15660-1-krisman@suse.de> <20231025-selektiert-leibarzt-5d0070d85d93@brauner> <655a9634.630a0220.d50d7.5063SMTPIN_ADDED_BROKEN@mx.google.com> <20231120-nihilismus-verehren-f2b932b799e0@brauner> <20231121022734.GC38156@ZenIV> <20231122211901.GJ38156@ZenIV> In-Reply-To: <20231122211901.GJ38156@ZenIV> From: Linus Torvalds Date: Wed, 22 Nov 2023 16:18:56 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs To: Al Viro Cc: Christian Brauner , Gabriel Krisman Bertazi , tytso@mit.edu, linux-f2fs-devel@lists.sourceforge.net, ebiggers@kernel.org, linux-fsdevel@vger.kernel.org, jaegeuk@kernel.org, linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 22 Nov 2023 at 13:19, Al Viro wrote: > > The serious gap, AFAICS, is the interplay with open-by-fhandle. So I'm obviously not a fan of igncase filesystems, but I don't think this series actually changes any of that. > It's not unfixable, but we need to figure out what to do when > lookup runs into a disconnected directory alias. d_splice_alias() > will move it in place, all right, but any state ->lookup() has > hung off the dentry that had been passed to it will be lost. I guess this migth be about the new DCACHE_CASEFOLDED_NAME bit. At least for now, that is only used by generic_ci_d_revalidate() for negative dentries, so it shouldn't matter for that d_splice_alias() that only does positive dentries. No? Or is there something else you worry about? Side note: Gabriel, as things are now, instead of that if (!d_is_casefolded_name(dentry)) return 0; in generic_ci_d_revalidate(), I would suggest that any time a directory is turned into a case-folded one, you'd just walk all the dentries for that directory and invalidate negative ones at that point. Or was there some reason I missed that made it a good idea to do it at run-time after-the-fact? Linus