Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3903004pxt; Tue, 10 Aug 2021 14:19:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe/GhU2e7PGYJdBwmMQo4tjYljzs7C/mHOBVJJ5DI+ji07cfENaPI5UJP7MQILcPewLyyF X-Received: by 2002:a05:6602:2e0e:: with SMTP id o14mr757342iow.161.1628630380255; Tue, 10 Aug 2021 14:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628630380; cv=none; d=google.com; s=arc-20160816; b=hr/jYlQwqPKR10ekzudlbm+3XoxjGGb2GbszOBxIcUDfthep7ySgxTbiPSpB/57zq2 hdvQqusMzL3q+XUkLYQwe7JMIbPHaLnYOdHyBNybt8Yk1znoMfOzZJbsu9eNqEGZjrG+ 4RhzfjpwzOkhoDGN5KrNMgdFI5FPgLv/BkbCLA4g8wcpG/pgHAYfBRm0F+qb8B84DvY0 A+wjKJQGA5klDRQ+iuPLmQ4rfhpwTGHCZKH6Di4rF/cuD4ixuuK0nxBg9pCq4TWJreG3 A2NZCZWV1xTcdfWtFN0WPo3QhMg5+8SuBu/+7FbGldAB+/wh/U3XC3MTxWTiJRCaoCGZ PHdg== 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=Kd5sOM2lE8G16kwKZ2yuKZ958xSbsd3EPAS6DFRskxc=; b=NKGm716VqNBDQ8loW/Nn6xftPZ9XuToce0verNF35jxZt4uG8ZwrFSYAKweTtoDedT O5FwHorhhcyM8A3NryaPmRbKYa58ru2zevt2MAN3DRybGB6T8KqTIFipqPNAZY3BL9Ah h+X2DpdDAltRIFVz3rFcSHSEqJWZWpyujyr/Up3vM+kY2p2VgQJ3w2ZkffxZS7zz/Kat Yb9x600QrVpEFlNhXlrrBbcThL2gx0lmiR94/vq8Jj1qtDqDPyxYNNpUd7WTtqnTZFbz 9Y/WISQDxSN8eHgKdXw0Ytx0D0b8oamKutFY8a+KPhTjiZXSCti/jcXzQ4wDgJ09vt/8 6I+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Tu8VMfHS; 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 j14si27255184jat.60.2021.08.10.14.19.28; Tue, 10 Aug 2021 14:19:40 -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=Tu8VMfHS; 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 S234138AbhHJVSr (ORCPT + 99 others); Tue, 10 Aug 2021 17:18:47 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:22860 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233968AbhHJVSo (ORCPT ); Tue, 10 Aug 2021 17:18:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628630301; 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=Kd5sOM2lE8G16kwKZ2yuKZ958xSbsd3EPAS6DFRskxc=; b=Tu8VMfHSKYQkwRAYsqXUo8HHHSoWOqzMlLYlhbFM0+96ljuM7GemTFFqFCrMrOCYke04et aR85w9R0MdWycsgpJeTf8KyTEHILjIx3vriD0AGtyRTV/0FYLLfk/TtHm4WR+XLZEL3UMu KXJCMJSvVxbAYKzdcT0iZQDheXm3Bu4= 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-514-yC7zaF9kPhe3PLmfplJmDw-1; Tue, 10 Aug 2021 17:18:20 -0400 X-MC-Unique: yC7zaF9kPhe3PLmfplJmDw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0D9F4801AEB; Tue, 10 Aug 2021 21:18:19 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.22.32.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id DDC5B10016FF; Tue, 10 Aug 2021 21:18:17 +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-69-willy@infradead.org> References: <20210715033704.692967-69-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 068/138] mm/writeback: Add folio_mark_dirty() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1812968.1628630297.1@warthog.procyon.org.uk> Date: Tue, 10 Aug 2021 22:18:17 +0100 Message-ID: <1812969.1628630297@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox (Oracle) wrote: > Reimplement set_page_dirty() as a wrapper around folio_mark_dirty(). > There is no change to filesystems as they were already being called > with the compound_head of the page being marked dirty. We avoid > several calls to compound_head(), both statically (through > using folio_test_dirty() instead of PageDirty() and dynamically by > calling folio_mapping() instead of page_mapping(). > > Also return bool instead of int to show the range of values actually > returned, and add kernel-doc. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig Reviewed-by: David Howells