Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7322614rwd; Mon, 19 Jun 2023 22:53:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zysbHoI4jL9V4tH97LCNhy+Dcyi28L1F8/WwtMEuM17SD6zXKNpAoqchhyP12Eq28aa0B X-Received: by 2002:a17:902:740c:b0:1b2:5676:14ea with SMTP id g12-20020a170902740c00b001b2567614eamr11872419pll.28.1687240389418; Mon, 19 Jun 2023 22:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687240389; cv=none; d=google.com; s=arc-20160816; b=cITgXpwH2SRfb+NqRT/00Bvb88g/iitiptdlY8nXPdAD6GRLzqqLPPNeDLm8+uehrR LEW+CyrudfrS3DwJkiisWjJ1jlKYAYkqwmtrixaEll+Xcqc2uXeBvhf10w2fkTY5TzFF hdPXpYleRMPFG5Z6fk8ZiQ+1Mh4wtChXGUVUotGdK4elX0vraE987jobgpaD6cItEcQO TeoGy1rAKBg5LnIycHUzIQF/Kipotrqjy97ifqYj8iR7iHoQ+EUJz7PYF60QpqdEmfsS UHBYDHwkajxq1Rt17sY0tFj2iRIbH5ITrdCpOutdP8Gqau6RElK7m3RbAaAc1U3RpLZs p9AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tv/KxUiDyInx1PDIV4kKpPvm49qY+WbJYdAJ6sLDhoI=; b=YmW48RAcJDjvM+7wpxMtsGS+0IuG8qpm22mKK3HgRf0VcnCBZ12uJIF2adsPFbIR00 HLdFZYnO/NH+bS3D5uZgNKg3hFFntkzyl9Q/Bc3Do2/+wj1S/fdEnAGHYF7/Y5inEMCD IdmCcLzhnD17LO9dRJZ6LAZOd/XwS6p4zQI5Sq+buyQ0zaTR8IKQjXxFQXulADh53IsA rWSRmRbRw8kYFADDm7sLevS7n98DL5vaklz/E8eaT6p7DRZ+D6ko4Esbg54IX5Fjc0dU tEo06L0h7sznmGPGh4qZzzDhn2T3dOZVIRIJJuZzQ69zMsvDXe0FjBCUCNfafhS7htOR a0mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="R/t46Tzh"; 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 k3-20020a170902694300b001b54331c1e6si1166211plt.306.2023.06.19.22.52.49; Mon, 19 Jun 2023 22:53:09 -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=@infradead.org header.s=casper.20170209 header.b="R/t46Tzh"; 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 S230319AbjFTFeA (ORCPT + 99 others); Tue, 20 Jun 2023 01:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229782AbjFTFd6 (ORCPT ); Tue, 20 Jun 2023 01:33:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 751CF10D5; Mon, 19 Jun 2023 22:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=tv/KxUiDyInx1PDIV4kKpPvm49qY+WbJYdAJ6sLDhoI=; b=R/t46TzhdTxke4UZWex1PeqvLr IRfKCDDZTIim72lwJr8JnaG7z7w7yqd4Q3ncT9V6yosKeD8/lu7DDIHSW8OL3CzY79OHW7H4shFFR HBy2XN3Tcx1JqfgZzSthwJGEKqDEdvxCOmRJ5qxKXNmxU9Up20N32mjZUcgGKmf1I3ORDTAxoequ3 UYP8qjGwFBHujcKbmWuPWmmPzmbHN3K8/IvlialHYgfWAikGSoNh2o7pby7XzpUv/rE9pP2IVR8sB 0DzWdX/8NwU4WW/g+MMRofhK4dQ2jPuNL4tnXylJUipBM81fPkPkUlbRlQD71cETnHVAdCf3AvFdr JaGyFSIg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qBTzp-00Chre-QP; Tue, 20 Jun 2023 05:33:42 +0000 Date: Tue, 20 Jun 2023 06:33:41 +0100 From: Matthew Wilcox To: Bean Huo Cc: viro@zeniv.linux.org.uk, brauner@kernel.org, akpm@linux-foundation.org, jack@suse.cz, jack@suse.com, tytso@mit.edu, adilger.kernel@dilger.ca, mark@fasheh.com, jlbec@evilplan.org, joseph.qi@linux.alibaba.com, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ocfs2-devel@oss.oracle.com, beanhuo@micron.com Subject: Re: [PATCH v2 1/5] fs/buffer: clean up block_commit_write Message-ID: References: <20230619211827.707054-1-beanhuo@iokpp.de> <20230619211827.707054-2-beanhuo@iokpp.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230619211827.707054-2-beanhuo@iokpp.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On Mon, Jun 19, 2023 at 11:18:23PM +0200, Bean Huo wrote: > +++ b/fs/buffer.c > @@ -2116,8 +2116,7 @@ int __block_write_begin(struct page *page, loff_t pos, unsigned len, > } > EXPORT_SYMBOL(__block_write_begin); > > -static int __block_commit_write(struct inode *inode, struct page *page, > - unsigned from, unsigned to) > +int block_commit_write(struct page *page, unsigned int from, unsigned int to) > { > unsigned block_start, block_end; > int partial = 0; You're going to need to redo these patches, I'm afraid. A series of patches I wrote just went in that convert __block_commit_write (but not block_commit_write) to take a folio instead of a page.