Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1867105pxb; Mon, 20 Sep 2021 07:08:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9wQ0HAfR1cLvjao7/DKoU1Ur3kL0RQ61/edPVyI4iYkDh3AApcc7C/6S2r2at8EdQMSrK X-Received: by 2002:a02:ac88:: with SMTP id x8mr6057071jan.35.1632146937974; Mon, 20 Sep 2021 07:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632146937; cv=none; d=google.com; s=arc-20160816; b=TYPSmknzn6MqJtDm3RkcLk0cELVusCw3TQ6Xtrpiq/6O8sz2j9RE8B3nRAlpv7bj0k rf7lsVwX7S5nAoQmuh/s32Otv+qCnMrjGadBtUXCOQ3S25e32SDwcrdHjEWGoT0w1GlV 7DoY9zleZJQqkgBo7a5icAeyTF4DfGbj21NSbKCL02e6UTOP31xuVhCx/5YdMHD7Qybi pvsOrtGNJA4xAoS1+BykixFlP/yO6XV4JueF6AwdJz0Ewbqa1xOU/oQl1f1FCYJrFpT/ DNF/lad8PBFURmnMmSRSPrzQJb8KyZWtDtFHmEsjB9MW1lRu5m7lpaJQ9Yz5BrYcgKG8 eVZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JsflVfkQxQB4N10JR68gBY89s+ETKAkmb+oupF+vnMo=; b=ot0I+a/VFzn/B6Yo2hEdW+9xOQqUZVkLwmgSCh76TWqPBAHQef3MYWlU1k3enSYJdU EQYj+xnsMkGeKoeUq1KsLATPhW1j+fwy/usc5xgKnDfMp62j3HtxCvyqhhvbJvvvq99b fFAhXnthmoQsd0cgQyUsG98H8BRJKj2/dWzwLFoBZ0w/HTHgGSVgKh5YkFhTh7TBfjYF DtD+j5akDKUnEyBbj5qZcURsM3uHzk7i5zKbLrcs6KkC3h7FR6s57URGtJi8hMD/EtrV EQJiP6vjprl1xMycHoUCH3WdK2usAAGyIhlRMBqqZa+jyLrpoVsePmBGW8QNR5i9pyBW nzoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20210112.gappssmtp.com header.s=20210112 header.b=27IEOpve; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o37si4940016jac.23.2021.09.20.07.08.17; Mon, 20 Sep 2021 07:08:57 -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=@shutemov-name.20210112.gappssmtp.com header.s=20210112 header.b=27IEOpve; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234845AbhITKFD (ORCPT + 99 others); Mon, 20 Sep 2021 06:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234857AbhITKFB (ORCPT ); Mon, 20 Sep 2021 06:05:01 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E32C061764 for ; Mon, 20 Sep 2021 03:03:34 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id p29so64603527lfa.11 for ; Mon, 20 Sep 2021 03:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JsflVfkQxQB4N10JR68gBY89s+ETKAkmb+oupF+vnMo=; b=27IEOpveeqqFcAi832Br+8AG9JKChmAv7tTrVV950tvPtiqpC6Psrah4+xSVxUaJxd OOKtThwEUavPn3JhVr2Nbj+N8aBC33lIuEyu7BINU8GGBzDYDijug74t6wde0vhp211R nh8mUkfErVn8ZmBK+CwKhwa32vtsfl1O66XS3KXTuYhc7Z/bO5ah2+kW6ZGIZmrjVcuB ZbTp8f7Qn6ilulvkGgc6YeIJPW/u69ubD25NrfyFd4Ob2zZuG823H6yGMXImEd+b/4dx dK4EFgA73SkzK2t9nDI6500OlEpBG2oIGrQj15vChjV8Balbp1ESoqCBKzHTxKteSZ3g ERTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JsflVfkQxQB4N10JR68gBY89s+ETKAkmb+oupF+vnMo=; b=pyb493TYOpKq9l5U+CSDjwOL2itpPx+QecTcSv2EpS9eAjDBqbvUidDG1dsknIrSCC YisGa8fHMaMFpbrD6o17ulRviJvEc6fkqDrEgUV49Xk8jAzHgNG3ZMDayZFJcLOqW/KZ H/HzXGaFnai0O09thjcust3cdQ3o6iMF/GJ9SCQCP2sDwYXa+oLNYII7G2bxsDh+Cj68 EGx0+shAjmN6npPC9721ztV9a9ctdrus+JHLfXCfpO51FbvEO6FYzLOnbUhwkd77V9Pi s1AqJQi8E9x75IsskVibF0JhMojqLWQs8+IW7Krjfl0/3+YhwMmRGCi//btuCZo89JEW ti/Q== X-Gm-Message-State: AOAM5323dXkgwhJxLLyGJWgReNWYbp9eXNCAUn5LMr19wYBz5JboekAd RBLLpSMX1Fg9ri1g/7+jhMQUpg== X-Received: by 2002:ac2:5d63:: with SMTP id h3mr18425134lft.278.1632132213126; Mon, 20 Sep 2021 03:03:33 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id i4sm1227194lfo.13.2021.09.20.03.03.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 03:03:32 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 7D479103053; Mon, 20 Sep 2021 13:03:32 +0300 (+03) Date: Mon, 20 Sep 2021 13:03:32 +0300 From: "Kirill A. Shutemov" To: Johannes Weiner Cc: Dave Chinner , "Darrick J. Wong" , Kent Overstreet , Matthew Wilcox , Linus Torvalds , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , Christoph Hellwig , David Howells Subject: Re: Folio discussion recap Message-ID: <20210920100332.gd4a2c3aza3rufk5@box.shutemov.name> References: <20210916025854.GE34899@magnolia> <20210917052440.GJ1756565@dread.disaster.area> <20210917205735.tistsacwwzkcdklx@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 17, 2021 at 07:15:40PM -0400, Johannes Weiner wrote: > The code I'm specifically referring to here is the conversion of some > code that encounters both anon and file pages - swap.c, memcontrol.c, > workingset.c, and a few other places. It's a small part of the folio > patches, but it's a big deal for the MM code conceptually. Hard to say without actually trying, but my worry here that this may lead to code duplication to separate file and anon code path. I donno. -- Kirill A. Shutemov