Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp604044pxb; Tue, 15 Feb 2022 23:30:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+2gBXk1jxlLHthf6fPUfL9Cb01DtIfdhpOLJt3S5MqSm8tbbJTGKH32WsM8bUvUhXhd9L X-Received: by 2002:a17:902:a3c8:b0:14d:2d03:294e with SMTP id q8-20020a170902a3c800b0014d2d03294emr1121660plb.53.1644996619907; Tue, 15 Feb 2022 23:30:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644996619; cv=none; d=google.com; s=arc-20160816; b=xV9r9OQZ1LFQLGq7t1T3JwydlX3IvaojGezd+FR1z7ukciKlx/qOHVGwAaKCvxFZc1 qeVmtSEO4UEWqreg5yf3z+MHlLMIu8RlzjzsfDB14KioyLBLY/eGomVLF5xZw+u4ekzP XCX3AJvx3rSU44MKXpS+jHkAUgnjpvto7Eluqh/TNNtjGRgnxi5KHnChlFUkW0DNaX/S P8gtqz0GGWpYYbH5twZMM05ea23dkxRjovcS7tO+tbWY5VeYq99XtQ6YqWKvpNOleSLQ uXJpnndPYJuasBL2tecu+dchErHZZEhWaYyx91ABtSYXbSPMcSnbIqLu3L2uoZxL4f+K ivBg== 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=lxDxiH7YdaguzLVLUSqqsB5d4iEpIHEpukWCHc1REm0=; b=AHu5Lx5gPUgE7bECihsXHyNdH9qWMSMFfJoJu+R6uXFaaByJMlHOk3deuv+FUZtzre Zwrs6sfhu4Bm2OVwa2VedHrkLP5y8Ft0723PJF11JlP5jpTTOqOr8Rgrejwr2pgihVrx Ue18o3jNfmcL6kmTXNvZbBJBSFrwNb7gojz7N6RH6bzH1QT/zciMcrk+7ZkG+/NlU/j2 WTJ/SHc+2H1UU1EsYjrCGeIMqg20Tub5QMmcPT6hgUhyHnMehCbx1XxKwZGhhzJaDUD9 gpn1lANydw3WqayBfc7oAb9DPODKeQ3wyh1NDkv2rr8EA5kCocsZU3dnquogrhmBsFPd +a9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EelEfSfm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id in20si16129743pjb.91.2022.02.15.23.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:30:19 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EelEfSfm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA982294137; Tue, 15 Feb 2022 22:57:53 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244715AbiBOW5W (ORCPT + 99 others); Tue, 15 Feb 2022 17:57:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244711AbiBOW5T (ORCPT ); Tue, 15 Feb 2022 17:57:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E130D4CBA for ; Tue, 15 Feb 2022 14:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lxDxiH7YdaguzLVLUSqqsB5d4iEpIHEpukWCHc1REm0=; b=EelEfSfmJZSj7jPR8xdrytLvOv vvUegttSQBNXTCISxTbXxPrmJ3ijUCphVHjWXzE5fzvUSjXjgspgCUuw/AooGJM3x20gIF2JvPJCV Gr7jF/6+VPXHTn5p6oQYvOOdahT4NrKPvmxVpYH9NobncBN9rut7BziYG9r9sb8oOrGxy9XBaXXIw lopSMV62eX5PhZgVOKfGsWjasY9ZBEuxFoA9uyQ5zoLd3Yw2uPBDcikP8sjKIweQuXrki7JmYHalt vJCwUxPIlS2v6dDqrKb0d4JKpxhOoVKrCGPHuRudPQBuWKe6sTGs3YVuOVr8AS7BIFdxRsIWKQdW/ hq8pA/JQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nK6kL-00EEoo-QD; Tue, 15 Feb 2022 22:56:33 +0000 Date: Tue, 15 Feb 2022 22:56:33 +0000 From: Matthew Wilcox To: Hugh Dickins Cc: Andrew Morton , Michal Hocko , Vlastimil Babka , "Kirill A. Shutemov" , David Hildenbrand , Alistair Popple , Johannes Weiner , Rik van Riel , Suren Baghdasaryan , Yu Zhao , Greg Thelen , Shakeel Butt , Yang Li , SeongJae Park , Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 10/13] mm/munlock: mlock_page() munlock_page() batch by pagevec Message-ID: References: <55a49083-37f9-3766-1de9-9feea7428ac@google.com> <1abb94ee-fe72-dba9-3eb0-d1e576d148e6@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 15, 2022 at 01:02:30PM -0800, Hugh Dickins wrote: > On Tue, 15 Feb 2022, Matthew Wilcox wrote: > > > +#define mlock_new(page) ((struct page *)((unsigned long)page + NEW_PAGE)) > > > > I'm going to change this to: > > > > static inline struct page *mlock_lru(struct page *page) > > { > > return (struct page *)((unsigned long)page + LRU_PAGE); > > } > > > > (mutatis mutandi for mlock_new) > > Okay, thanks. (You're not naming your folio "page" :-?) Worse, I tried passing it '&folio->page'. That produced some ... interesting compiler error messages.