Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp602203pxb; Thu, 21 Oct 2021 06:03:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgcKERZGnsUyXynaUnQfqxRgdcNUSwxWD/Y7wp379+tA9JTPzGjY2Vvwdjpgmfh/IQitgV X-Received: by 2002:a17:90a:760a:: with SMTP id s10mr6533324pjk.135.1634821432994; Thu, 21 Oct 2021 06:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634821432; cv=none; d=google.com; s=arc-20160816; b=TVF7qph8QqKh/1NPHa1o1XYWAnKAz5prD7NcRjZ0IFtTagGCCAYmQAKCRo/6r1yHX1 SHDf39kQGHp9oCfFGoPP1/aqazhIx5LIC2yU3WQYAKdikoO1IRi77I+WvWnBuxbpxx4v P7RQ5JwzVwYvJvTe2LUQkJjWGLqbGL6l0VYjIl+gP29rNnnB3340NOGHbftdjeaQIL6B Zatcy1QkfBkE45Uu1lVg6J2Dm0hSH4SLbx65vnn2lAhIP6Xo1uQn/5OP2xIa3nVCoTT5 ROqAmlHcMkVx7KKRQig1r0H6CQ25CUrHnoei6cXsRdAyWMoe5UFxX6elPZ/o5PXScWRu T1BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :organization:from:references:cc:to:content-language:user-agent :mime-version:date:message-id:dkim-signature; bh=FfLpJ3QKCtDn5mfQ0p/F6XAIE90YCmZunG7Z1kcvIk4=; b=TTGE91YDphkyBotglG0mOpIRXQoV5+JTTQa2sH6g6O4+qnYjTP14exMbgtxcswsknY u0LqUPrQcADmR7EfiaURnrtiyjuH3I0nijGtwDGeKIcceSvaECmz2LQHrIZBJMAKySUB S+TPJWFdh/+mXXVJEAJscr3dtBzx83ZhXuJJ53oh1NWHOdpsCVzxrw155LskwaLHpEpB CWfRuNakSM6oxOomPvELeVCEhijOwfy7HYF7Z2n4l7QEvqLNKO1d+Cti2aqffeSEtLov qroUvEisPZTYDTW96uDyoIulCYSout8aL1PJKUQElPS6Z/VlqEqgsCICzZsgJuygT2Mz +NDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qbyzui3W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ei12si6197257pjb.183.2021.10.21.06.03.31; Thu, 21 Oct 2021 06:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qbyzui3W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231675AbhJUNDF (ORCPT + 99 others); Thu, 21 Oct 2021 09:03:05 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:39997 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230359AbhJUNC3 (ORCPT ); Thu, 21 Oct 2021 09:02:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634821213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FfLpJ3QKCtDn5mfQ0p/F6XAIE90YCmZunG7Z1kcvIk4=; b=Qbyzui3WjDKdWFvsIKdTPkPi3VC24q9EDlYsSe83ymJ66xr8rFS6cQGdML0zlCA1ab620R kA1zbAKjXg2hZpA1ASQdcsKnu1hX8uEfLFI/1H9Mqj+Z0DvxAI6BGGi2Am0hUUtaa2R0s+ Wcr7/fdXAbiNEnUm6DxNvEp+sTbH+P8= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-236-EYk_PLMHMXiatruUkQog1Q-1; Thu, 21 Oct 2021 09:00:12 -0400 X-MC-Unique: EYk_PLMHMXiatruUkQog1Q-1 Received: by mail-wm1-f70.google.com with SMTP id l39-20020a05600c1d2700b0030dba1dc6eeso288531wms.7 for ; Thu, 21 Oct 2021 06:00:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:organization:subject :in-reply-to:content-transfer-encoding; bh=FfLpJ3QKCtDn5mfQ0p/F6XAIE90YCmZunG7Z1kcvIk4=; b=PEbJzCsZWzSECSknmGZtBMi8emChMkQR192QqCNAvW0k7mR9YYjsvrEV6+9Z5ANEPV NFGM4jMu7nIIYOrTHD1ImT+jX1tBvlweeBhgHWvhzkFkGvj2hiltToycCtR3UTOOOew0 cr4vxlOAwN0JWRNWGf0x95eBq+1WaUYC8Jh9mGH8tTVwgjqSIKMUwt34NSofZPrq+9l7 HFeGZJ5/P6c1nQl65cAH1l+5+ZiaK0rgiad4xKh27BTKgH9ZPaAU1Tg46X75VKpWApxM axXSYjrUXKXVRR5gzLOsZmuvnpGkbrgjjTt2jBdVtm8tnQnIFdaAgaU2iL7J3V3hdUId xA3w== X-Gm-Message-State: AOAM5309SuJDfSrqsiaw6leC4yYnSQxSZ4SwGPArtPu4E3qxF/q2AT9a 4pUwhiyoIGFkD+3k5JTZMDJCSx8LWwu13Z1wTbd8Pc3lL58YFwLgDC4He90sbUtPv5dyWuVnKm3 knHZ4i0iFHZNiqDzj/OfiS46H X-Received: by 2002:a7b:c31a:: with SMTP id k26mr5899047wmj.187.1634821211040; Thu, 21 Oct 2021 06:00:11 -0700 (PDT) X-Received: by 2002:a7b:c31a:: with SMTP id k26mr5898985wmj.187.1634821210632; Thu, 21 Oct 2021 06:00:10 -0700 (PDT) Received: from [192.168.3.132] (p4ff23aba.dip0.t-ipconnect.de. [79.242.58.186]) by smtp.gmail.com with ESMTPSA id w2sm4851031wrt.31.2021.10.21.06.00.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Oct 2021 06:00:10 -0700 (PDT) Message-ID: <90909355-43cd-e680-bb73-777d485ee532@redhat.com> Date: Thu, 21 Oct 2021 15:00:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Content-Language: en-US To: Christoph Hellwig Cc: Kent Overstreet , Matthew Wilcox , Johannes Weiner , "Kirill A. Shutemov" , Linus Torvalds , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , "Darrick J. Wong" , David Howells , Hugh Dickins References: <20211018231627.kqrnalsi74bgpoxu@box.shutemov.name> <996b3ac4-1536-2152-f947-aad6074b046a@redhat.com> <436a9f9c-d5af-7d12-b7d2-568e45ffe0a0@redhat.com> <2fc2c5da-c0e9-b954-ba48-e258b88e3271@redhat.com> From: David Hildenbrand Organization: Red Hat Subject: Re: Folios for 5.15 request - Was: re: Folio discussion recap - In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.10.21 14:38, Christoph Hellwig wrote: > On Thu, Oct 21, 2021 at 02:35:32PM +0200, David Hildenbrand wrote: >> My opinion after all the discussions: use a dedicate type with a clear >> name to solve the immediate filemap API issue. Leave the remainder alone >> for now. Less code to touch, less subsystems to involve (well, still a >> lot), less people to upset, less discussions to have, faster review, >> faster upstream, faster progress. A small but reasonable step. > > I don't get it. I mean I'm not the MM expert, I've only been touching > most areas of it occasionally for the last 20 years, but anon and file > pages have way more in common both in terms of use cases and You most certainly have way more MM expertise than me ;) I'm just a random MM developer, so everybody can feel free to just ignore what I'm saying here. I didn't NACK anything, I just consider a lot of things that Johannes raised reasonable. > implementation than what is different (unlike some of the other (ab)uses > of struct page). What is the point of splitting it now when there are > tons of use cases where they are used absolutely interchangable both > in consumers of the API and the implementation? I guess in an ideal world, we'd have multiple abstractions. We could clearly express for a function what type it expects. We'd have a type for something passed on the filemap API. We'd have a type for anon THP (or even just an anon page). We'd have a type that abstracts both. With that in mind, and not planning with what we'll actually end up with, to me it makes perfect sense to teach the filemap API to consume the expected type first. And I am not convinced that the folio as is ("not a tail page") is the right abstraction we actually want to pass around in places where we expect either anon or file pages -- or only anon pages or only file pages. Again, my 2 cents. -- Thanks, David / dhildenb