Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp820880rwl; Wed, 29 Mar 2023 08:54:42 -0700 (PDT) X-Google-Smtp-Source: AKy350ZzXyRs6qswqwlc55uUxwODoShR2DvomgpgE3HmeKCRrYT22E+3X9yVuUlnlnF+IS+3wFDc X-Received: by 2002:aa7:c54f:0:b0:4fb:7ad6:907a with SMTP id s15-20020aa7c54f000000b004fb7ad6907amr19606830edr.13.1680105281807; Wed, 29 Mar 2023 08:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680105281; cv=none; d=google.com; s=arc-20160816; b=0wV8NvjhdXv23rKDUHppcOcMSwARryVnLI/2Dh3oDRjbNp/xq2Us3zuWGypR4B70FF 76PqpqNBzbTRGOsZ7BsaHsjC/5acJ078AmATDi0JeY0PM4bgjeyk1QfSPwKADQPsOieG BBNQj2UfLor/terFKmUnKzjcSLaxtC8qLHsi84ICK8Fz5lhIUMHIw5aS6yT0NtQteq6g fh+8L2zTCdMs0mUAKBUrAGaLDUQAJeErnw7alrcXXSkBOzOPAhygDpauvK1KdF5O53ND DUa7IJRqKmRdVLYf86c+g63G79IBJyMi6BY8YEwmIOUB4IHDJ+CyWHNF7XtpuMmLy6eV rVwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=n6mFTNsPAlX4aM7ayWY6bDtyV8ROmsAxRc6wOQ4NTzs=; b=HK4fBQA6SQCiWfPHaamh7gYtROmf9s3YJgLJ3+hMPHj0nSTSNGHIhsuHlxsXfS6h13 +3I0qPjHpbJ3iJkYiOnyv1skTh9yN5CVIo0EctkM/i4kj4NCPtfE7wlEjFaO54a1soFj LeeUidWAQxkxfes0uipJKdc5L66UE3C3Whx9SZkyQQ2znsSnue7Vpp18UMnod3oShoWE +i1goQY6IYAfIpxdvgwOcr9pQO2PYCaFjQVe7SXvXWbLH74jGxEyPlvGPvaVHCqiVFnY Dco4K2xevEryInDGVMvIbIZlcDDmLd2H5jIMSJbZ3SfFw2ys78Pa5GU7PSs9AFwK/5Yp ibQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=tb2IkMoo; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i23-20020a056402055700b004fd03dd5f0dsi31192380edx.563.2023.03.29.08.54.17; Wed, 29 Mar 2023 08:54:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=tb2IkMoo; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbjC2PuO (ORCPT + 99 others); Wed, 29 Mar 2023 11:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbjC2PuG (ORCPT ); Wed, 29 Mar 2023 11:50:06 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D61285588 for ; Wed, 29 Mar 2023 08:50:04 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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-out1.suse.de (Postfix) with ESMTPS id 8D8E221A1C; Wed, 29 Mar 2023 15:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1680105003; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n6mFTNsPAlX4aM7ayWY6bDtyV8ROmsAxRc6wOQ4NTzs=; b=tb2IkMootnQyJmz8gYwcGKLaFlI3jf7Tg3G3Jy+pYylQbpGtoM4Zk94epXTVrauLiihB+u QQS6PHyDaXC6Eh3k++50wm7RAM8IULQ/zk1vw7paCpZsxAEWC6NDFIlH9IPp3uF83CkZlU Jd8L915eE/dym5woJozE3Tt244IiD0c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1680105003; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n6mFTNsPAlX4aM7ayWY6bDtyV8ROmsAxRc6wOQ4NTzs=; b=knbrPh8Gw/E9OQ2YLjkL2rALvYlm+aeaRAYB4QTO3WDZUq/qMmvZVgfXMGyNIOKOfT1IiI tbJi5SpBd53/ApAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (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 imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B08E913A18; Wed, 29 Mar 2023 15:50:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gc8VKypeJGRiYwAAMHmgww (envelope-from ); Wed, 29 Mar 2023 15:50:02 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 6B103A0755; Wed, 29 Mar 2023 17:49:50 +0200 (CEST) From: Jan Kara To: Ted Tso Cc: , Jan Kara Subject: [PATCH 12/13] ext4: Update comment in mpage_prepare_extent_to_map() Date: Wed, 29 Mar 2023 17:49:43 +0200 Message-Id: <20230329154950.19720-12-jack@suse.cz> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230329125740.4127-1-jack@suse.cz> References: <20230329125740.4127-1-jack@suse.cz> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1258; i=jack@suse.cz; h=from:subject; bh=JuJKMzle1SxXfisUwr+OoJQBJlYVLkJcuPotCRuJdSg=; b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBkJF4WeEVZqr4amnqsj7mdL7xepPJnfgOxiwfFHQVu IHph6OOJATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCZCReFgAKCRCcnaoHP2RA2ea0B/ 41OnehWlQSX9ZYC392iy6CG2Gzn2qgtZwC9yO71m7oOLMw3t8d+d3OoywRliorDfVUrtVjbp3JsibH 3yXvMx5xo1y+ZMijmU6ElapLUqDo6R+LV+YRCxEGv0HkHmdcUnMd2lPh9/E3XyNaAKsF5LYogreLBJ WXUsdfUyIH0ixK9Eat5DlT+TuLbrWDi3UQxaNyMd4LJWUVww3xxtxRIA0nqd69DDBirIor3U4BoKnD Xo0wzlQXn69oL9mVJfLMK0Piq9Fo2XyE+asTAvroyYVAZH9MIF7V8MjLi0wXZPIgiROqDMVG0iP/UI MszF8tM4ShILAGbULkJh1uDpt15H28 X-Developer-Key: i=jack@suse.cz; a=openpgp; fpr=93C6099A142276A28BBE35D815BC833443038D8C Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Since filemap_write_and_wait() is now enough to get journalled data to final location update the comment in mpage_prepare_extent_to_map(). Signed-off-by: Jan Kara --- fs/ext4/inode.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 3c6bce0afb20..25a9e7586c50 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2490,11 +2490,10 @@ static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd) * Just submit the page. For data=journal mode we * first handle writeout of the page for checkpoint and * only after that handle delayed page dirtying. This - * is crutial so that forcing a transaction commit and - * then calling filemap_write_and_wait() guarantees - * current state of data is in its final location. Such - * sequence is used for example by insert/collapse - * range operations before discarding the page cache. + * makes sure current data is checkpointed to the final + * location before possibly journalling it again which + * is desirable when the page is frequently dirtied + * through a pin. */ if (!mpd->can_map) { WARN_ON_ONCE(sb->s_writers.frozen == -- 2.35.3