Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3901496pxt; Tue, 10 Aug 2021 14:17:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzryqNhffq58vknbht378YfV1SJDgsuG+5nlzcEUYPSkfJR0Mq1THi7UZXAcA4JK7mK6Z3n X-Received: by 2002:a02:7755:: with SMTP id g82mr3173714jac.45.1628630242088; Tue, 10 Aug 2021 14:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628630242; cv=none; d=google.com; s=arc-20160816; b=ZWcetRuLX80ViO78f/7+fYxzg+JhSERcuQ1aYRQ2kkziPTRviM8ViYDgUoyo7sGfcj M9GjkpEZyuMi1xJQ8gObyFdJnu0D+wBgX8HG85narKouqe6+T57dy5kvbiXKTKAPXFpX xkh4NAX0guGGE9ZHAoQfAKuqijKUfuKL8daRU9f6b7jPdqzH/sIDjdFXSRqg1ia1P54Q A3iyUD9tJX3eJqGNgCKpcEwA4AIK3BkJapaxl/zwoRJsxYgjOrax+jUqvyRY3czLnYT2 GVYjx6cCpx7KllQH7fZJY65Ny03NW0vbgZfTw4q4E+dw1rCNWs6iSdT3zevkXaRxUdmw 8+DQ== 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=dLkInt1G4THI75AqLzGUP2gQtOK1/r2t/T8AZY8aJsk=; b=YURUo8TB71a3oF8Q92YVhouErTf5N6axAKsQHEzVcpaqzQ12+kC0oHurZo4abPc6dn iHUEA7erylxvIBn+vbk6fPN1yTzBO4QrHieej75u5sg2FcY//WkSChfuB9lg306Zj7RL vbORv7+l8xjKDr/AdVbM2M1PiYsqXdbXtDf7LyzL0M9uGqaKMo+dHE+zaGg8UkZViMB0 UfioD7pMVRfOzSQw2Ja1asgz3CWrn18VVF140TqwcNRLrF2tseWJ+FHblGhH1SI8I5Er f6w0zoPcfUG5hBzTxdLnxqmgtniLNMIYtGwQsFcpaP5lIj2qUsULpCjyMXv6eOGFSX2I 6bVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BcblGSa2; 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 c1si4378983ilo.83.2021.08.10.14.17.08; Tue, 10 Aug 2021 14:17:22 -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=BcblGSa2; 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 S234138AbhHJVQh (ORCPT + 99 others); Tue, 10 Aug 2021 17:16:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:24050 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234126AbhHJVQd (ORCPT ); Tue, 10 Aug 2021 17:16:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628630170; 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=dLkInt1G4THI75AqLzGUP2gQtOK1/r2t/T8AZY8aJsk=; b=BcblGSa2b8xEXKrbjbN43BPiPbBx1a1AJnGS9WcPCAVEDJfQYfApvmAd80samTRBFOVaOR EjJg3T8yxaRscwdqvBwJN7roodPU6xVC2icgXLbekws3pxnYP/8V94JJiFzeLSDx2S+lDn GB1iy58WS2q7BktVBIrFFuKWWKWOqvI= 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-561-GSo1H4wpNBG4PFuMLUSslw-1; Tue, 10 Aug 2021 17:16:09 -0400 X-MC-Unique: GSo1H4wpNBG4PFuMLUSslw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2FD3C106B316; Tue, 10 Aug 2021 21:16:08 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.22.32.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0D794779D0; Tue, 10 Aug 2021 21:16:06 +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-67-willy@infradead.org> References: <20210715033704.692967-67-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 Subject: Re: [PATCH v14 066/138] mm/writeback: Add __folio_end_writeback() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1812820.1628630166.1@warthog.procyon.org.uk> Date: Tue, 10 Aug 2021 22:16:06 +0100 Message-ID: <1812821.1628630166@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox (Oracle) wrote: > test_clear_page_writeback() is actually an mm-internal function, although > it's named as if it's a pagecache function. Move it to mm/internal.h, > rename it to __folio_end_writeback() and change the return type to bool. > > The conversion from page to folio is mostly about accounting the number > of pages being written back, although it does eliminate a couple of > calls to compound_head(). > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig Reviewed-by: David Howells