Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3895958pxf; Mon, 22 Mar 2021 19:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1TEItLbx9tnjuyTAf+jh3tm7nonE1FTxSSJO88k7RwqdcyYgqPNzQpre1bG2Ey1IdNWO3 X-Received: by 2002:a17:906:7cc:: with SMTP id m12mr2479817ejc.171.1616465656692; Mon, 22 Mar 2021 19:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616465656; cv=none; d=google.com; s=arc-20160816; b=zvAao7xMfq3Qqz4l77G5LpgJeogk4+6L71dxRpXCoS69QsjaCKpzp+vi2Z2Uf/E2yO WtrNpP+/W+b7peJPZXnfvs6YhutlfshAgJpBmacrvkK2w5owG9VB/QDujNnrqW0AGFen V7Duw9fl3KKkJPm9MNQ46ZTT7O4cH928rgzV3AaUiLTQGpGIpz8fj/GmuneVt/Ll2S76 yCVRiNRnyj0wGlPE4EzQ4Ilo81aEVrm+PtaQc0EF+nl6zL+ZOwjJAy+COfozI/lcooXB 9DpHu7HMfW8kdrWNflmZqWdLzeQ3skME5Q7Rqm575eKEEg9d05HUlaQ4D5ulAMlLuINn VjXg== 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=0jV8L/eta9FUAW6CaxrcK1SMnq0K3JU8UUtVFBh1gwA=; b=QCZhEY4wDhQhvRgDWchHtyAO7/l26a4LPY6akuFE6aaWAMXvoO32zhSyDzAjnpTlse KTRpSpC7Fqr/2tyWajNLtLo8ERspVnbZYtM+XsblFjg5brAP6Xd6P03TlEtYo+bLspnD miVwOdpV5o2rSxBb2FXfmHUDquBE1+dxWvisHGL6kBPplg+7k2+fegCVyO5xQmeQ3Iyh Qp/2wM2l6+UNKloPgF7dCjtbwssc13/UIn+fovRi9MaYfc4xkO8MeAQYDTMOzMN75R+Q tWM6KoNU6ypQE8TCHzPKoM92covM0Aau+uH8wiqQS2a8fmHguGNuqz3w0Y38QscOzwzz NfSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YwTPJ8jt; 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 e7si12883737ejd.658.2021.03.22.19.13.54; Mon, 22 Mar 2021 19:14:16 -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=@infradead.org header.s=casper.20170209 header.b=YwTPJ8jt; 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 S229920AbhCWCML (ORCPT + 99 others); Mon, 22 Mar 2021 22:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbhCWCLi (ORCPT ); Mon, 22 Mar 2021 22:11:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E339C061574 for ; Mon, 22 Mar 2021 19:11:37 -0700 (PDT) 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=0jV8L/eta9FUAW6CaxrcK1SMnq0K3JU8UUtVFBh1gwA=; b=YwTPJ8jt+kwsZR3kT+ATPd0haX KaSdDuDBAgCK1eYS79Qpn8PGTIONmZQEbbQKB2ntdrD0pThDWhDT4xrrXO+KG4l0sFX7wJjQO6ccx WGcW2ltnUYgJl+Um/A4QSmDPS8ca1WsF14sxlmwdEdnZrCG2KgOiFDRiuQAFP+VKS+37nTfqg1Q67 z9/RqD2ECS2rYuMjSa6TSPtcergEqN113zNeJM6oNDJsuSmNlpUa6cZETlbX7MVlp8J3a/bI98f70 P1Puoeu98IA3tu3UHnQwzCVIWmWddRWpqy8Ba0jTJiJChjH/I7+6T1u5ePWvF8RlVtHJEhbTpPNZS s6w1nurA==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lOWW1-009OoH-84; Tue, 23 Mar 2021 02:11:31 +0000 Date: Tue, 23 Mar 2021 02:11:29 +0000 From: Matthew Wilcox To: Peter Xu Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Kirill A . Shutemov" , Jerome Glisse , Mike Kravetz , Andrew Morton , Axel Rasmussen , Hugh Dickins , Nadav Amit , Andrea Arcangeli , Mike Rapoport Subject: Re: [PATCH 07/23] mm: Introduce zap_details.zap_flags Message-ID: <20210323021129.GZ1719932@casper.infradead.org> References: <20210323004912.35132-1-peterx@redhat.com> <20210323004912.35132-8-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210323004912.35132-8-peterx@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 08:48:56PM -0400, Peter Xu wrote: > +/* Whether to check page->mapping when zapping */ > +#define ZAP_FLAG_CHECK_MAPPING BIT(0) > + > /* > * Parameter block passed down to zap_pte_range in exceptional cases. > */ > struct zap_details { > - struct address_space *check_mapping; /* Check page->mapping if set */ > + struct address_space *zap_mapping; /* Check page->mapping if set */ Now the comment is wrong. It used to mean "If this is NULL, zap pages with any mapping", but now it's always set, and the decision about whether to check the mapping is in the flag. Honestly, I'd remove the comments from both these members. They don't add anything to understandability now. > + unsigned long zap_flags; /* Special flags for zapping */ > };