Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3718285pxt; Tue, 10 Aug 2021 09:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqr3UlTFrR9xLwSi+Q3f1XVzjJ8rbBNMxY9EOmwID4YSftDpJtrnkOKV6PP2Ms+6QHw014 X-Received: by 2002:a05:6402:b88:: with SMTP id cf8mr5983876edb.281.1628613841526; Tue, 10 Aug 2021 09:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628613841; cv=none; d=google.com; s=arc-20160816; b=KHyNzvyCC5z7h6hT+WNrcp5FFKZunSO4sZwO9nrCt25CWKH12a5ntcy1P7PTrjUw3Z 9jxL6c2NuLZsbrulUvZub/Dryu3WaT2wOb8sSwlghuWNFgTNyvxWNpxHgviGI1d7rOD5 a5kypqSF+gsXHvQYQJ0/ibytcDXb+slsTFwmB6Becq50H0gd4r2vWHPnQTkoCS2L6kov 9UJBXTPeFUWvOmahvfys9QOyjwoCGuDRUYl7LkfvAkOs2NugHnCBSqjK3dglydToT8JJ 6lYllg4c7s4Bwxf25GjYimy/fLC6qfdUmXz+KzOAxuL6NtOssQyhIgN+bsPrLhQI1kfZ my+w== 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=RQ/0SiinduV3LbfrDNpCgNc852w6KVFq2vg6uA6nZMY=; b=QbWV54jktaezESxHNs3YxAKpid7zwzthuczg+zm1ZboT0Wmsjmv8G5hF3nLGDMYI5k AJXQB1HrkgBDtu1h4W4qCWmnSkPC9oAWANJpHHmGr2erbAgT3QWFGjtxmVi6st5O+cTk cNSMwLqtibFZ5dyX6zNX8r4Guu5mGRvX1lshNOQJ0f64d2gajuD2BWSePElDUCVe/pdk mqVPwXb+UxZa7hcNJcCV1qbvKpS8EEBl6UF/LTQ7iqCT/wrBCEllIOynQKezeLzW0iE8 JG/XmBZhpqGvQ+YmnWbgD639S/yC9Kzj+e8O9K6Qv8ES7ng4BecgSIqJ+9gWUffvL31D NL0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="b/BEBggs"; 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 f19si3251184ejz.64.2021.08.10.09.43.35; Tue, 10 Aug 2021 09:44:01 -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="b/BEBggs"; 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 S243510AbhHJPgN (ORCPT + 99 others); Tue, 10 Aug 2021 11:36:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60545 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243387AbhHJPfZ (ORCPT ); Tue, 10 Aug 2021 11:35:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628609702; 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=RQ/0SiinduV3LbfrDNpCgNc852w6KVFq2vg6uA6nZMY=; b=b/BEBggs1mh6gjLGN/7bNCM2jTd0z7txwNj/wh+aYv4oYgcluHAxRsk50xmb4tVKFs0ZXR THAszCCW9HXddZtESSV3li0OpfH2MZkFYNETT7kzMLtIdsNnclG/J8H6PC7VqGsEfQo/T+ QVHlqEEsL60exeoCVooXDcBCCFqObUI= 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-35-SQn8TOELMhaaUUu2SlN4DQ-1; Tue, 10 Aug 2021 11:34:59 -0400 X-MC-Unique: SQn8TOELMhaaUUu2SlN4DQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 677571026200; Tue, 10 Aug 2021 15:34:57 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.22.32.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id D8386620DE; Tue, 10 Aug 2021 15:34:55 +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-23-willy@infradead.org> References: <20210715033704.692967-23-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 , Jeff Layton , "Kirill A . Shutemov" , William Kucharski Subject: Re: [PATCH v14 022/138] mm/filemap: Add __folio_lock_or_retry() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1796456.1628609695.1@warthog.procyon.org.uk> Date: Tue, 10 Aug 2021 16:34:55 +0100 Message-ID: <1796457.1628609695@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox (Oracle) wrote: > Convert __lock_page_or_retry() to __folio_lock_or_retry(). This actually > saves 4 bytes in the only caller of lock_page_or_retry() (due to better > register allocation) and saves the 14 byte cost of calling page_folio() > in __folio_lock_or_retry() for a total saving of 18 bytes. Also use > a bool for the return type. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig > Acked-by: Jeff Layton > Acked-by: Kirill A. Shutemov > Reviewed-by: William Kucharski Reviewed-by: David Howells