Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3659078pxt; Tue, 10 Aug 2021 08:29:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4cnBd8h8lErl/SK+LXOcgC/U0HxSlD349J2+0Qzfjy6BPGCq8DeI1IuVelAe5+FzSEO8v X-Received: by 2002:a17:906:a018:: with SMTP id p24mr28009839ejy.349.1628609363210; Tue, 10 Aug 2021 08:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628609363; cv=none; d=google.com; s=arc-20160816; b=0LrIQgTXo32nwXdU3wONOHbRmSsWYcQJ2TO+4IVsvkTbyTCR9HKnIUzZqxMPLBQ540 Ocxzn61CXpR04sVbn3C+qL4AsxuN4SG/fhlqf+pBt47E0C+9dC/M7I/nL2qExYWghoVn MVZG4rTHI51bGmdVlgIqLEq5nQOWg0ybI0O0BBPx2Tl6QpECCiIpvQClfLJSmRFvAdUq Cu8lSN+L2kOQO1k7du+P5OEvanDKKEFXbTxqNvdDT5/mwsp7OdW0dFH33dWpqZ9o1zCQ 115S9ge33XSVeut8SWcBnVtlwapTJb29bELmRrdnB9uwEylhxIjq772jNJo5Zgcie5tY RU4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=aR5WiP8Sy2Ok7L+iqhhcSFE1BU6ka1g0BypnNp795AU=; b=jSX//UbJNjop4CwXfolagf8Q4yxCtVlKtfzDGVFsNZ18IYiSkHgzxQK/qkXIqo6UIY +tY3OrKTKQcgxVvAJtVyVb9lYYRiuMJz56W2W+endEHLyckufnUocT/mKONpOtsVTSrT 4yPhTV7d659iod9hkYh9eogs0HXPeX/XYWushk7iHCNl7qa+che9tOdvZ43S48URENpF rywWm3voCeX3IJ8n/2HapV5p7YCdYAr5lwdVcahxOrGZT6PPyDHEQ8ZwbXMmvwrds+DB UZ9vwdzunEXFKxafWxD0eLkHQUj1qoLIRcPBIlVdGB5Lh0CaY1D9bDxDhJwh/s9qQF1j 0KJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Kc/IRV9b"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si7613175edp.549.2021.08.10.08.28.58; Tue, 10 Aug 2021 08:29:23 -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=@redhat.com header.s=mimecast20190719 header.b="Kc/IRV9b"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242927AbhHJP1h (ORCPT + 99 others); Tue, 10 Aug 2021 11:27:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:27822 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240233AbhHJP1f (ORCPT ); Tue, 10 Aug 2021 11:27:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628609232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aR5WiP8Sy2Ok7L+iqhhcSFE1BU6ka1g0BypnNp795AU=; b=Kc/IRV9bA6/noEtVVFpwePPQAB60QVJNw/oM23YzykByr4ZqZO1M9CUx8GFwoi9fBv4tk1 1Rifm3VUUBGQn0Pb4bwllTkRzJKFhxNKGFTLB6vE5h2picklj8n8NfcLtYjySa/DIoWCHT W4ANFerm6ctO+UINKKgukFva3RdRq9k= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-529-mihzOg3-MlCdZKFZdunwXw-1; Tue, 10 Aug 2021 11:27:11 -0400 X-MC-Unique: mihzOg3-MlCdZKFZdunwXw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D3FD38C578A; Tue, 10 Aug 2021 15:26:51 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.22.32.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 58C225D9CA; Tue, 10 Aug 2021 15:26:50 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20210715033704.692967-2-willy@infradead.org> References: <20210715033704.692967-2-willy@infradead.org> <20210715033704.692967-1-willy@infradead.org> To: "Matthew Wilcox (Oracle)" Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , "Kirill A . Shutemov" Subject: Re: [PATCH v14 001/138] mm: Convert get_page_unless_zero() to return bool MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1796019.1628609209.1@warthog.procyon.org.uk> Date: Tue, 10 Aug 2021 16:26:49 +0100 Message-ID: <1796020.1628609209@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox (Oracle) wrote: > atomic_add_unless() returns bool, so remove the widening casts to int > in page_ref_add_unless() and get_page_unless_zero(). This causes gcc > to produce slightly larger code in isolate_migratepages_block(), but > it's not clear that it's worse code. Net +19 bytes of text. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig > Acked-by: Kirill A. Shutemov Reviewed-by: David Howells