Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp243369rdh; Thu, 23 Nov 2023 02:51:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjM1yJIQ8v5pjxZYiLSt4/iWQeuYPThy8jB05SF/U2bxG1aXC5YM6JzGHtWkyuKvfwrZkS X-Received: by 2002:a05:6a00:1412:b0:6c3:75e1:9dcd with SMTP id l18-20020a056a00141200b006c375e19dcdmr5102062pfu.18.1700736705101; Thu, 23 Nov 2023 02:51:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700736705; cv=none; d=google.com; s=arc-20160816; b=zxeQDY5IXeKrZIgjESVJGf14MYmg4X47AYRe9b6durFFt0rQ3IhggVh44QBWPvDMuj v7ECT4dp2sFNilSfcXGjve88yu6ZE/mpvMf3FW17qS1NrmB0fsOOUj4NBtOMPZTVySod GaeXB1xWldPp2iYOYLcCqMkQGhaHQh4JzI6V32EqxALaykjNElfAtIIx3euGto0lKI68 Sv1MDBwx3vsFl+OgoVd4NCzRAkN5egJFQf/+w0HrcoGxiJ0A9Q7lHrfHOhR+nY7rQEFm OOHAIQcQwWdqNAGmDIlc0ex9sOddmIxqtIIf4CcD1ZGyv87CxzUM0xDok1kyjBFu43Xj y8og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YwmrQxHTU1CAY1ik/8lG526otmBtdlTxUGsXkGRD6CI=; fh=mxM+iyYud2eqLtG0pkLKi0uG+kielFRY+hhtqFHmhjA=; b=L4bs2CrTjE/RB4fYq7Btn9LpDfvzZGGZAp7gcLorRLayxQYI3xvi23jEOyRzjnB3Wj Q+Q+cGLycu/M37lNPpUQ+YrqZGC8TxNDmwzTqtfIoSQUOO5NM0e50bUQo7eRt+G6erNd RR22oQEhRCzdz73CDKMynkY4MKe3ydcn83RjN8S/JEcq0HbzpwAI/W44lXKFZKv+yqkS uuLMuo4TzwdVNQmLKcTlj+m0FG/T7SX8qk6fMdZSiLkAEJvK/KpCb6NvwqeE21qJmmHH wuEZVixW52ew37X3aPIVV7r57KHF3J/e9mZYcHsMMu4kVyrkcake9bc+rfVELXVW0LWc Ymhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k0dIWGdy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id w29-20020aa79a1d000000b006c4af0a7842si996850pfj.274.2023.11.23.02.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 02:51:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k0dIWGdy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 94FAE837D973; Thu, 23 Nov 2023 02:51:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344793AbjKWKv2 (ORCPT + 99 others); Thu, 23 Nov 2023 05:51:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbjKWKv0 (ORCPT ); Thu, 23 Nov 2023 05:51:26 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F01B51BE for ; Thu, 23 Nov 2023 02:51:32 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2c87903d314so9296761fa.1 for ; Thu, 23 Nov 2023 02:51:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700736691; x=1701341491; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YwmrQxHTU1CAY1ik/8lG526otmBtdlTxUGsXkGRD6CI=; b=k0dIWGdyCNSRc9jCtYdKWRp7xFeEkqVxOsptra5DyH9AIu0NxKT0Os8NctAOrJZU/B 5RuSWBWaaaGUvYYuf+6jbzF8SuYBVuFoOTUctkeVkL73Tx7aBIVcB6s+bkr8jC3PNsnd OBdRB8vItg1MwQMlOaldLOjX5+6rNN73wjStaT3nj3C+SJCOrgq6JhGiucaPKPcNRwqs Fq2gB4wDT9MnXk4qnPlulqvG1D6OCezhy/RPzXGbu+uQpPw/Bs5G4WcvJCFpXtSBV9Dc o3djXpX6lrLj7T3KmzoHq9h6QAnrSj4kingaOr/fnlfXg8pl7bV503PrXKNyd55sUVT9 +Omg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700736691; x=1701341491; h=content-transfer-encoding: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=YwmrQxHTU1CAY1ik/8lG526otmBtdlTxUGsXkGRD6CI=; b=ATWM3Z+oFlId+j4wumXyxjOXxc4S2eRZoPWpSq9ktZcxSSXrh92h6Ay6s3j7sYm545 HpxCeElWDXERzxBB9iq38Je+KsZDdIbyHCWkn6pC0wP/Ht4MzcoW91IcRSTdVDaGsu1c oG28UoHcigQ59751X6aW/RnQ4pcL7014Mk2KZsgwQIZ3x4nAurelAsiGdBHU21xtzaHx ok0dJ2fJbLKPZJpA8D5PloBY4XS0r+Z/wHmK4G0oRi3CuBIMQY3u5PUHtew6ewrjSGlh fFntuzQi6BFeKWleXcx3JY0MRXF8ky/M+VH6bfKHZuioHytP8sw58to+5psG9juPa3KR 20jQ== X-Gm-Message-State: AOJu0YzZHMOfoPxmos9rDi1GCXC/IiTH0C24ArXkVlpry64O9riwYvsV DzorR4tCyknglcPHCdl0WwIjco2njm0U/u/OLe8= X-Received: by 2002:a2e:a988:0:b0:2c6:c3ea:af7b with SMTP id x8-20020a2ea988000000b002c6c3eaaf7bmr3896551ljq.5.1700736690883; Thu, 23 Nov 2023 02:51:30 -0800 (PST) MIME-Version: 1.0 References: <20231119194740.94101-1-ryncsn@gmail.com> <20231119194740.94101-7-ryncsn@gmail.com> In-Reply-To: From: Kairui Song Date: Thu, 23 Nov 2023 18:51:13 +0800 Message-ID: Subject: Re: [PATCH 06/24] swap: rework swapin_no_readahead arguments To: Chris Li Cc: linux-mm@kvack.org, Andrew Morton , "Huang, Ying" , David Hildenbrand , Hugh Dickins , Johannes Weiner , Matthew Wilcox , Michal Hocko , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 02:51:42 -0800 (PST) Chris Li =E4=BA=8E2023=E5=B9=B411=E6=9C=8821=E6=97=A5= =E5=91=A8=E4=BA=8C 14:44=E5=86=99=E9=81=93=EF=BC=9A > > On Sun, Nov 19, 2023 at 11:48=E2=80=AFAM Kairui Song w= rote: > > > > From: Kairui Song > > > > Make it use alloc_pages_mpol instead of vma_alloc_folio, and accept > > mm_struct directly as an argument instead of taking a vmf as argument. > > Make its arguments similar to swap_{cluster,vma}_readahead, to > > make the code more aligned. > > It is unclear to me what is the value of making the > swap_{cluster,vma}_readahead more aligned here. > > > Also prepare for following commits which will skip vmf for certain > > swapin paths. > > The following patch 07/24 does not seem to use this patch. > Can it merge with the other patch that uses it? > > As it is, this patch does not serve a stand alone value to justify it. Yes, I'll rearrange this.