Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp2790pxb; Thu, 12 Aug 2021 09:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWeW8oCI9jNIPXBv8Xr5SGt7hnQw/VtGR+43i+momRyJUY4T827VsXLlCkZRL4qjkyBBbX X-Received: by 2002:a17:906:a283:: with SMTP id i3mr4366765ejz.528.1628785636661; Thu, 12 Aug 2021 09:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628785636; cv=none; d=google.com; s=arc-20160816; b=sCj+yGZNzAmr1gykW5rAizs1OSVVzs/H42r8dpq5IEZ+Bb+lZE0+yw9F7O1/Z6WJYW Ouv/9cX1D+PyNNqpm+wLPqVceMUIWRxR8t3zcW5amKwuACBAp0gn9u7FostQSDcIMLE1 F6xyuoSVKAOfTSQBxziBTUsiEd0FmD2Sog4LRH2Of8J4ovwDAgdk8XHU+UIjauM83vPe zSXsiXwHPrdgVvzZr5zie2DwXxaxm6WMklqW0fi7sjWBiTwLXOXA4Nv/+dlsBPZkoFq+ DZtPVuJFIhhKpxsDLYlX4zOnnpmFEVgrln1HSCtEN8trgiSVmOHp7hxhxtVI9DBptHde YKug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=O1P5cfCreQpHbUvjnHSmGavypkvtu0Fv9JV7GTmIvDs=; b=xGwyDHvC5ZOw+n9L/+To2r2bgY6fzzD5eoSfIk1LdeBEQeG59ijVlXHhqoSN0uJK4k q0pU0pcQPk5lH0S90elvVee9GRhHkGug059JbgqfggySCLb4DjnQarrt3+aJfRbz4EmY Dmu4tJwC1mBQ3lkqiNv/TGqwBFZHlCVbpDIsNj9rONllpm0JiKDCmFfFkMvGZZq4DzBw zFyjynNEk4eGDPdASeFsumMWN9Gc0S3whnchZCpiaKt8p7CczGkxdyo0+InkHdBmn7sg YpAFkYa9eQnnIeYt2jtMM1enikMYoVzSCTfKd/cy9N092wNhLJ3Jx933WQjToojRMtxk Ipww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=MtGuQnGV; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=zt8ZO1+I; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx2si2310549edb.48.2021.08.12.09.26.52; Thu, 12 Aug 2021 09:27:16 -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=@suse.cz header.s=susede2_rsa header.b=MtGuQnGV; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=zt8ZO1+I; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232439AbhHLQZI (ORCPT + 99 others); Thu, 12 Aug 2021 12:25:08 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:54468 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232353AbhHLQZH (ORCPT ); Thu, 12 Aug 2021 12:25:07 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 98D621FD64; Thu, 12 Aug 2021 16:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628785481; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O1P5cfCreQpHbUvjnHSmGavypkvtu0Fv9JV7GTmIvDs=; b=MtGuQnGVxAj9qQY/WgpjvbugyusrHdR5L7BXpt8FTy5H0s7kmeSTs4lsvn0whf1EK2Fmsi ckQEdalKDo11BCZr9P7SVX6A/GrZLBoi7uz92i7jOoIz8RWh3b8aE8hhRDFWw4GAsEfoYe 7/4eOWPcl66cnKcIrsenu37p6dMUshQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628785481; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O1P5cfCreQpHbUvjnHSmGavypkvtu0Fv9JV7GTmIvDs=; b=zt8ZO1+IZNaXQV/OlENgwdECaPRSnbY+rqdwobgWPQ40IdDnnpRDfIQp9d8kItrTBaa3rn 6aOd0QR3QyY+8RDg== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 7555713ACC; Thu, 12 Aug 2021 16:24:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 7X+TG0lLFWHEAQAAGKfGzw (envelope-from ); Thu, 12 Aug 2021 16:24:41 +0000 Subject: Re: [PATCH v14 074/138] mm/writeback: Add folio_clear_dirty_for_io() To: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-75-willy@infradead.org> From: Vlastimil Babka Message-ID: <24a7db9a-0c61-44ec-3ffe-bd6462316a9a@suse.cz> Date: Thu, 12 Aug 2021 18:24:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210715033704.692967-75-willy@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/15/21 5:36 AM, Matthew Wilcox (Oracle) wrote: > Transform clear_page_dirty_for_io() into folio_clear_dirty_for_io() > and add a compatibility wrapper. Also move the declaration to pagemap.h > as this is page cache functionality that doesn't need to be used by the > rest of the kernel. > > Increases the size of the kernel by 79 bytes. While we remove a few > calls to compound_head(), we add a call to folio_nr_pages() to get the > stats correct for the eventual support of multi-page folios. > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig Acked-by: Vlastimil Babka