Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp157308ybl; Thu, 23 Jan 2020 20:36:07 -0800 (PST) X-Google-Smtp-Source: APXvYqw3zqFc3gXessSGjJR7Yl3u3EH6NOLmAEiMCpQDb/SOHcOKb0bP6wJai6Cl3ByJREU2jJWO X-Received: by 2002:aca:388:: with SMTP id 130mr835476oid.89.1579840567705; Thu, 23 Jan 2020 20:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579840567; cv=none; d=google.com; s=arc-20160816; b=lmG1zPQGYXhzZ6yoWR6NwD+Q1tgrW9KsoqlkxPO4p0mnNM+reukDFztsKKW+U9CgCP TmADn1RdWSsov9XediSnn6i03ehU2ozm8NRjDvqRu9l2AeG0P+uwvtPmiYBnXpcutFQH XmyfWDpuBUogrqnVmMudRFvBggMzJjQiMVmDOQ7eJpjyNjH3Sczhax+zCY3Ls44eiPMM 3RYRxNI0TAyBchyFVHb9qgpgougV4fY9UEg/cz7iQ5dK1Iz+9qrFVNFdgLTVKD3bxNBS naSABQoactZLsoiPJtgBb6wmirWYKGapw6IbOyEwYLjcD1tIzrVSIsRiO+irMCYOQOna BWFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YARMc3ae9hSUEoLGMas34bGpYXx9jRcQkvor0pcL47o=; b=SxxXyTAHw5PK1yB4A2lm/y+bPZgxWsEHRWQpMuBJl83LlJ2Lxoc6NHBLfrC0dizR0o VPNddE4aA78wkwoqr25EFDkZA5oTh2jja9lN7FTDF2VB5Xa248DuOqjDiRXVFPLGEa7L y4jJONv4as8sYAc35soAyU2bvgpci7B9SKUl1LHAQVSHCfxa8oA+fWoAAoh8lRgYuv0L 0stR+DGx7z7WTGKI+JThWMj9elNsZsp5tKSGivF66K1GMRBGL7wiL8RtZZ+5OIBtKaFc 1EH2ewL6ySuhJF1op3pizvIo8gNOgDsuqwnfXaYOAWddCrV+4H4XWZ/dzHs/D7YTtSFk f9XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KDHO7h9B; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si2187157otk.91.2020.01.23.20.35.56; Thu, 23 Jan 2020 20:36:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KDHO7h9B; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730583AbgAXEbD (ORCPT + 99 others); Thu, 23 Jan 2020 23:31:03 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46474 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729900AbgAXEbC (ORCPT ); Thu, 23 Jan 2020 23:31:02 -0500 Received: by mail-lj1-f193.google.com with SMTP id m26so862904ljc.13 for ; Thu, 23 Jan 2020 20:31:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YARMc3ae9hSUEoLGMas34bGpYXx9jRcQkvor0pcL47o=; b=KDHO7h9B/b3mjy26Oj4EeSJIUNyQLYKaSj3d1nBNy4K7dVvqvhrzQt3G+uksHtglCC GEn7l0fqTV7YiLooSM8wJDBDZ3zMa1NiXyT+I4cRb1BWaZgPHz2JpFTvojB+HO94ozad MFaWKBQ9Zo4BEUhjLXI4paXN7kyNHtoN96Dwri5CF7MjQQUEfySc0AQBNxyC2R8iJZCg guQxm94eI0DXd65SS/rnuHoJaoHhIN0BgEW5d7+6uC/9ey1p7B8TnBe/F7DCn8v2dGTO IOVEJ7yvZF/HCRcAWrK9qPC6Itzo8kSjahJNwMYca4x2RJsn6vyrLjbauzKhHQ8haKAe U9uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YARMc3ae9hSUEoLGMas34bGpYXx9jRcQkvor0pcL47o=; b=Gm4qgQKHc6wTsA86T/z5Dnd8LMGZT0SkEDo02G+Rv8FAk8U6AVGqL0yK3NF6ycVtQM jkIOnUJzkLwLTjU2F09rGUYGeXTHueUWi6DIYnMBhvYmfLomkceJiGf907V7/oDlKSXh I8MJvDLiby8PfoCDeyTi1yGTNFgRbJDAuaxLHh8AKwN9nxXtXPJTmRHgQMe4gTpoaIHM GC7zdxz28kjNUXATQ+qndM8drP2SeLQKGD5yN+c+R7NDjpkL2ux6+dtcIXGCMNkMb82g DZvy4JOqqRqqjaywk982roSpws2bU6BANk9HQQXYUqpH4aIg2kurvQG7gtxEtwl6XHnT y5OA== X-Gm-Message-State: APjAAAW3RU+uw5q2d20bhWdDwS5Q9Dxt3Fi53iPhL966iQ+jyR3Bvh89 BqammNHLknJK60Y4OSy3tKAg+Gf3eqMRUVZBlN76Mw== X-Received: by 2002:a2e:7816:: with SMTP id t22mr1024528ljc.161.1579840260417; Thu, 23 Jan 2020 20:31:00 -0800 (PST) MIME-Version: 1.0 References: <20200117214246.235591-1-drosen@google.com> <20200117214246.235591-6-drosen@google.com> <20200120013528.GY8904@ZenIV.linux.org.uk> In-Reply-To: <20200120013528.GY8904@ZenIV.linux.org.uk> From: Daniel Rosenberg Date: Thu, 23 Jan 2020 20:30:49 -0800 Message-ID: Subject: Re: [PATCH v3 5/9] vfs: Fold casefolding into vfs To: Al Viro Cc: "Theodore Ts'o" , linux-ext4@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, Eric Biggers , linux-fscrypt@vger.kernel.org, Andreas Dilger , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > ... buggering the filesystems (and boxen) that never planned to use > that garbage. > I'm planning to rework this as dentry ops again. Your other comments point out some issues that also exist in the old dentry_operations, so that's a good opportunity to fix those up. How do you feel about just having the two entries in struct super_block? With them there, I can add the dentry_operations to fs/unicode where they won't bother anyone else, while not making every filesystem that uses it have to carry near identical code. > > Are you serious? > 1) who said that ->d_inode is stable here? If we are in RCU mode, > it won't be. > 2) page-sized kmalloc/kfree *ON* *COMPONENT* *AFTER* *COMPONENT*? > #2 is the part that made me the saddest in the patch. I'm planning to move this to the unicode subsystem so it can just walk through the name as it computes the hash without needing any allocation. > > ... and again, you are pulling in a lot of cachelines. > I probably should've just given it a DCACHE flag, like what fscrypt is using. A simple flag there would've done everything that I'm doing without making the cache super sad and making any attempts at making it actually work with RCU much simpler. > IMO the whole thing is not a good idea.