Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16069917rwd; Mon, 26 Jun 2023 05:29:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76WCyoP4hx4LzeUQs/+rheD21Y+ENYcbVNpLZvWZN4G9HedKRT/P5zDLgomaXFGK5gqEcY X-Received: by 2002:a17:903:32c9:b0:1b0:f8:9b2d with SMTP id i9-20020a17090332c900b001b000f89b2dmr8690259plr.29.1687782557734; Mon, 26 Jun 2023 05:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687782557; cv=none; d=google.com; s=arc-20160816; b=NnYvceMbz8wskeXGSXyl3/Rau21jzOklCmwCINiWCfTJGvEQcDVtAPGMrYLhDl1M3i IdpVMwrBQ/3R2FsJGdvkok/lNL8EGX7KiuDyE95BD1AbJkcHc8Puo9W46U3/moZ2sdKx j2pQDNBxb7gDBkq9uy0EQMpeKa80hie/sACSWNQmGwtU97/+MZt9x9z+p1YNsRCW5eao teTP63L/cYa7UyaW9OwXTTykn0aGT57gc3ww14aZ+Jjif5VWbl/jcCxXO1Aj9k7Q8AnX IdEza6Aj91pxVozmVlmc28PHO1qsV4WwY0nv9KVXqcT208Bil2rrtABSk6WjzFwMhkAC 5a4A== 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=3Fnlcm06KG3ZhOYahi/chwTRVVkhSDvG0K9SeqiS5DE=; fh=KbcW+xK4MR+6OGSK/NfF91lsRWYfvFy9fmrpE1i8miI=; b=jkzaTYiXeotQQwDT5OMRukhnKs7Gm405s13gNULF+7i+ZJNL01vETuuEF3gp3bJxn/ bDVgJpQYb2l3C9a4Ii9dh59hXfLo5CvigJ5s6mdQp8qXlpyhiEZ2wHXZAdERsVmoA+ht 1mgZuuetnBWzD7r51TI6GQd4M8KP+fmELGPoRElgxJmb0uu9eeuMSxsvdUHUKiNFir7B jl6FuylH+L8DqPBcwsV5Gv67mTyJs3r8cFBdCP/w0j7ViBNqEij5yDTb052zpeBvlLsG LfrxMKcb7EC/10O4PjA+G2x+TOjYpnzKpNuJFEI88+3bMoBUi45fM3hlJsdW+tvf0F4q q/ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Kbk3zz0B; 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 q13-20020a17090311cd00b001b1a2bf5275si5133114plh.74.2023.06.26.05.29.04; Mon, 26 Jun 2023 05:29:17 -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=Kbk3zz0B; 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 S229761AbjFZM2N (ORCPT + 99 others); Mon, 26 Jun 2023 08:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbjFZM15 (ORCPT ); Mon, 26 Jun 2023 08:27:57 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DACED26A8; Mon, 26 Jun 2023 05:27:06 -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=3Fnlcm06KG3ZhOYahi/chwTRVVkhSDvG0K9SeqiS5DE=; b=Kbk3zz0BfOzOZJUrGovlBDWliQ DVc4oS4e8s4KFQMM3PWa1fNnBIg/2eIYh3q936RZcyrYe2kuW1PAeKdeixEad6/EGoF4ZpjXq3Xe/ vGPuiBF0Z/OIm5a1SMcqWIH0CMThpXe7QNYPkVknc+cx9l/s+70tRVs9ocToTahg2S6CdEuWpEH92 8e4s7psYmG39wYTJhkdnjQrFvribhVHhJwoCYbjuzo43AFftERadw3hMP8Lqk0K7nNkWXxYu70MDc D1o2OIB8XBlCWRy+S3Ufq9QgbHxawyR9LnN///ppSLe1tXGrxF+JfMypyKbloYl8x0twn/gOwVrZh HPUMQT0Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qDlJ1-001hwh-NT; Mon, 26 Jun 2023 12:26:55 +0000 Date: Mon, 26 Jun 2023 13:26:55 +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, hch@infradead.org, 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: [RESEND PATCH v3 0/2] clean up block_commit_write Message-ID: References: <20230626055518.842392-1-beanhuo@iokpp.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230626055518.842392-1-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 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 26, 2023 at 07:55:16AM +0200, Bean Huo wrote: > change log: > v1--v2: > 1. reordered patches > > v2--v3: > 1. rebased patches to git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next It's be nice to have a bit of an explanation for the whole series here, but I think the two patches work standalone. If you'd like to extend this work, you could convert the callers of block_commit_write() to use a folio instead of a page and then unify block_commit_write() and __block_commit_write() as you did in the earlier version of your patchset. It shouldn't be too hard, both callers in ext4 and the caller in iomap are already done. That just leaves the three callers in ocfs2 and the one caller in udf.