Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp169360pxa; Wed, 26 Aug 2020 07:36:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV9Ae5RI4hZnpAu+mN5hs4Kn9Xjw8NWhMZfE4/PfS1ViDVvxmu9DpMT/vVLOSJFzoMv1Rx X-Received: by 2002:a05:6402:54c:: with SMTP id i12mr15034750edx.358.1598452617878; Wed, 26 Aug 2020 07:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598452617; cv=none; d=google.com; s=arc-20160816; b=Uw1/GPagW6pJXHm9gYJTzvPpt1PfFWnnh0xvj3oizsASW9RjvBArCUKbzz8j7uB+hQ W0NIMx7tpwYThCmB9adDwZwhk0LQ6MYHmdFe60TXi6TppwgRfDMyC6+nVrlcbXkG37He iAXTbp5Dj4UfGTEEVEV4tT1lqsECx+ChW/4+SM1AYO6k9UZMbOm4ENvweRqdywQqOHav 3s3Qk1MNettIeoYakXVwoS0p6J5IRroAWm+8RuTn8GJl5G2/h6widkC3pCKlpgfwBf2w v8LOZrU1fDZkOwISUD3iaMUUEvlDN3oTBUa6o4hvsFedito5cYdJ/NLFAD5Z6YXE1w52 ykAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zlwE58oTu+f+CX5TRYYwuWXiyc0+G6WkfNqbI/+jdSY=; b=ZYsNAPDdXu9NYHsm9vetBYJFbpOIillTCiYMpA044hc1dnehlQlZJZjsZVG/WBjwpT /uCRjvUlY8ViSK8Mn2og09+X2hTS5FzUTMCrdFduEXcdvk0k9UKIfutcIMKgB+0fLDwN U3WCx9PTjwdr+hfBtgzFHd2cWi/YoZyNK2VwkW9557S4GYhNkgDtaIPbJeQ8nA85RS/V pnKqyp1jPBQ0R2XchQlWe4XOUHCTGOUnMDPndTaH3ZxejwTRzyBko+RsNjx2EoeVvYDm zTUb0WFZuyS7OnyJbIdoBLUzhFa3iOQnQbX79Px9DS/eNLxlMRJtHlXzVC4g2TUFMiXG OifA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=cO+CBnh7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r1si1505030edp.241.2020.08.26.07.36.35; Wed, 26 Aug 2020 07:36: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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=cO+CBnh7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726971AbgHZOZI (ORCPT + 99 others); Wed, 26 Aug 2020 10:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbgHZOYb (ORCPT ); Wed, 26 Aug 2020 10:24:31 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671A0C061756 for ; Wed, 26 Aug 2020 07:24:31 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id k20so1457184qtq.11 for ; Wed, 26 Aug 2020 07:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zlwE58oTu+f+CX5TRYYwuWXiyc0+G6WkfNqbI/+jdSY=; b=cO+CBnh7nK5+bWxbN/rwQcj2H4qISpWSCtom8J3NYKwbjjXE4VHyCPU6l4SYsLNQmS /WI/E5HAG6u+MoAcxZo9egIz5wDe5DDX4DfqLRODmFk9MExnxgPzPF23yCNm1kB3cvoV JoRLPo24DnMgbfUAXBvkX2DO0dxWBYMNrm5mIDfNk6jWm/45g4hZat1hwqysM8GfOXFX 0R9ZwQfqa5GixPcfpxcCrt6oIcNXd+0bZ32ZYNKsPrbRA29tlAUFbv+RobCsikP15Xj7 ssAysz8PU4hvGQHGShDiRr1e+3BKKvfW+PrqfNf1IzlNtqHYDXkI1vnfAQh1X9s1Ugev bVmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zlwE58oTu+f+CX5TRYYwuWXiyc0+G6WkfNqbI/+jdSY=; b=YW+k/y+hKAjpyOC7BlyW1tZipX4FppCsEEgT/39gJkq7Ue/Jn+/kG+OwkY4zlqDxty hokEU/kh2d6scvRBcatlEAav2LZnRQnEm1j6IUkNlhGVCfZ6VDsPFt+TkiKmhICyH6Iy 8UK/8qVkmgGNJbz7bysFMFSIqlkvXUJbu27cg3+bP/eOpaPWCGr6ZyQWAhjE49a4l5Uk zDVfEIqBnsYG2ct19+MdtCAhEe3rik12n/+fQjTecW5bS4b+glbGui7+k0FsksLauZyA Libd8wvtNr9zGOQaAWLPHglv1fzVyGXN5/XBam3kVmPHNTtGJL2ko4bHkTxNecgIB64w MZ8Q== X-Gm-Message-State: AOAM5305AHwgOCCP14Ek7+RlVoAQNmW03vK8ktQydaqyoK+Nz5CGmTCi YXhuVGAgtryI0HnG0mXCOjWyzw== X-Received: by 2002:ac8:47c8:: with SMTP id d8mr13412483qtr.32.1598451870688; Wed, 26 Aug 2020 07:24:30 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:f646]) by smtp.gmail.com with ESMTPSA id l1sm2016291qtp.96.2020.08.26.07.24.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:24:29 -0700 (PDT) Date: Wed, 26 Aug 2020 10:23:15 -0400 From: Johannes Weiner To: "Matthew Wilcox (Oracle)" Cc: linux-mm@kvack.org, Andrew Morton , Hugh Dickins , William Kucharski , Jani Nikula , Alexey Dobriyan , Chris Wilson , Matthew Auld , Huang Ying , intel-gfx@lists.freedesktop.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/8] mm: Optimise madvise WILLNEED Message-ID: <20200826142315.GB988805@cmpxchg.org> References: <20200819184850.24779-1-willy@infradead.org> <20200819184850.24779-4-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200819184850.24779-4-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 07:48:45PM +0100, Matthew Wilcox (Oracle) wrote: > Instead of calling find_get_entry() for every page index, use an XArray > iterator to skip over NULL entries, and avoid calling get_page(), > because we only want the swap entries. > > Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Johannes Weiner