Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3930061pxt; Tue, 10 Aug 2021 15:08:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxkvoWxcdSPGaVquogkDEKbeEch7BRAZ97B6GZ0ie8iRkcZ/YU9Rt6U10v8EhxsvIyspox X-Received: by 2002:a05:6e02:138b:: with SMTP id d11mr186408ilo.30.1628633300160; Tue, 10 Aug 2021 15:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628633300; cv=none; d=google.com; s=arc-20160816; b=Abu7Bn0Xvp1hIxbY5CI7HV/UzncjQFcL1R8zw2lmazsy0RmhlJMaLml7sNdNBAOr/Z l3N8d/IMc8FcEqCjghGRFsnrbT/cjocbgdM2Zj/kpRFQ6tdVog693pXprSR0LX1iX3e3 d8/mCVtCpFkXZbB4jMupOHcUwzYJH6Gfaq41gSaefpB17k2U8firGLJXhoyhi1IYfHBR uW9zyxCHNgqLvlcRr5udznw7G8ind6TmSQ+ZzYAWMf/WusT2nuiSy6Wj3pDGmIeJZb1T onuHCD9hLY9CG9EGzlTuSUuosZSMqhhjGRrycW44uuFX4wCPcqCYriMM6cX8S0i0Jews Db1g== 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=hmzm8caQt3TdVyNzd3tgJRC0GlnTJtY3kcYH2J6COrc=; b=ODsVNar5lvSlMuGVjdY/3aQSU/RUO5CqVmekdDFaye154+yeTZMuX115O2YMfAP4CI Uxv1cjjvvVMmAhuggTjgz+LFQddnPYd5tOJddtDJr97ywEySV+K7OG4sS+P2IE1kTN9E gorfNDdjhBleB05EjmE6mWny7Kg2RetChTCTgSaanzQBlcbnlHTFY2LW4t0wZPSIwtUF GWncD75D7KEfB8PMeI55zOEtzY6cOc8fTuzVjYmmzko5idtf2k1aNoQx2C6WX4SeG+EY tj2rP3cgp2ktJlYGbvkZrEQNc8o69rzQ8NszB28bwRMmnq4r2+SK0TWBih4OAlioC5be 6qCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A7QMdstu; 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 c6si21522899ioh.27.2021.08.10.15.08.06; Tue, 10 Aug 2021 15:08:20 -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=A7QMdstu; 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 S235125AbhHJWHu (ORCPT + 99 others); Tue, 10 Aug 2021 18:07:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:27965 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235007AbhHJWHt (ORCPT ); Tue, 10 Aug 2021 18:07:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628633246; 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=hmzm8caQt3TdVyNzd3tgJRC0GlnTJtY3kcYH2J6COrc=; b=A7QMdstue/2zD8R0NgQEIolyF73LOTECOqbSvb42Y6dzIQxJhpelnb66clQIDvMxIIG9UP eZgu54KKKEh39I68eEbCJe0g5/Xjj2ODGPinyQZjJrOQeWgDtKZAVyFW5qgpuF73KP0KYw cjQkZSbn6zf1ax3NFUXbsJCzsnULmlo= 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-509-YUI6OfTyOci4zi2LL-OQ9A-1; Tue, 10 Aug 2021 18:07:25 -0400 X-MC-Unique: YUI6OfTyOci4zi2LL-OQ9A-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 9D1B62E74; Tue, 10 Aug 2021 22:07:24 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.22.32.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8894E10016FB; Tue, 10 Aug 2021 22:07:23 +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-90-willy@infradead.org> References: <20210715033704.692967-90-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 Subject: Re: [PATCH v14 089/138] mm/filemap: Add FGP_STABLE MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1815219.1628633242.1@warthog.procyon.org.uk> Date: Tue, 10 Aug 2021 23:07:22 +0100 Message-ID: <1815220.1628633242@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: > Allow filemap_get_folio() to wait for writeback to complete (if the > filesystem wants that behaviour). This is the folio equivalent of > grab_cache_page_write_begin(), which is moved into the folio-compat > file as a reminder to migrate all the code using it. This paves the > way for getting rid of AOP_FLAG_NOFS once grab_cache_page_write_begin() > is removed. > > Kernel grows by 11 bytes. filemap_get_folio() grows by 33 bytes but > grab_cache_page_write_begin() shrinks by 22 bytes to make up for it. > > Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: David Howells