Message ID | 20230626055518.842392-1-beanhuo@iokpp.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7275090vqr; Sun, 25 Jun 2023 23:16:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NFhiSQFk86iprGlmzPJHllVSPyHyDDkRaXu+67AZ+LMNTLaLEMgf7EyrAu2tiroUA1rqj X-Received: by 2002:a17:907:2be9:b0:991:b6f5:5f96 with SMTP id gv41-20020a1709072be900b00991b6f55f96mr1473147ejc.60.1687760194459; Sun, 25 Jun 2023 23:16:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687760194; cv=pass; d=google.com; s=arc-20160816; b=y/6cSUZxe4OwpP/PWsu2VCzF6Sy3W9qT1u5wiEgRMg0sGl6l9Pbci/F/GIKdvKQk7W n+niRbNFZJpaSQ0xqQZHY/O5HrsnmIe+43wbsqGgC2metB6MHUAxTpnrrzNwJFOLUx4a k6ghLgmSx2yTLgroxrqXKLRT5d2Jx7ono7E6dkBPLLnh48TnhKlbYo67syLu/KFwUt3O FuEFn4doL3BX3+r7FstVPwfR1+lVqg6I8qtxIS0bAY93Kfkcv/4iLmSEv7wXRxMJzsVf 8WebXU5G+MyNPEZ0uF1e5M+W2+SxybBM598VcKjlzymWZNkB2CIuvAmTejcAU7auYECu zXTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=uGLdz3S1xYOcf7/Hp5FiA7LT6elpVU7X4yht5ubS848=; fh=HIK6dmLG/xd56dRR1vuvZLBhfDvZZo+5YZN9k9GUVcg=; b=tbUxuliWm3xbyLW/XBskujOP42KMbdZJt8Ewmia8qKc1l9V1gHlaFffz9VDC+iBQA3 CLs8HasKvUbLaOdCAR8U383QLzI85eyTzjX714I5uyCJr4zGRHM8JHigLrActmyQufbQ aYEl5SCrVgXSNCAY+Wzw/27dUzMY3wNI451S4I/MxgA+QwUX7/n7JzQmF75LSCKmqzE7 NBtY06W0zStGYLsJaa1zaJcycnzzPT11oKh+YlJZ8nPuBvA8Y2xMVaWrRi8IZabmxqGG XDzTAgPU7KFgfK3aQDqAF+AjwLRGYnS/eQFk2cyGM+YzZp3ufF4OStfkpIiUNlh30MmP WDLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iokpp.de header.s=strato-dkim-0002 header.b=FHio1GDr; dkim=neutral (no key) header.i=@iokpp.de header.s=strato-dkim-0003; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ox27-20020a170907101b00b00987accb14aesi2464895ejb.893.2023.06.25.23.16.10; Sun, 25 Jun 2023 23:16:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@iokpp.de header.s=strato-dkim-0002 header.b=FHio1GDr; dkim=neutral (no key) header.i=@iokpp.de header.s=strato-dkim-0003; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbjFZFzu (ORCPT <rfc822;filip.gregor98@gmail.com> + 99 others); Mon, 26 Jun 2023 01:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbjFZFzj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 26 Jun 2023 01:55:39 -0400 Received: from mo4-p03-ob.smtp.rzone.de (mo4-p03-ob.smtp.rzone.de [85.215.255.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D331E48; Sun, 25 Jun 2023 22:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687758927; cv=none; d=strato.com; s=strato-dkim-0002; b=aQnuDz/XBuzSZ3LWUcwUNly1AAPclqlAlchZ+nfH2TQqNJkrRABXbXTPFtQwhvR8Dl 36HRTcGjFtf0aItO7SO746s0Rp2AJ5Uv3lKfbRiGozGFYlt/Tx+BS5nxXsbvUVdyXhFk 3B0TCaqosEfQ76zGA5HFGZpwg4y4slq5c5U379aspbk/w5FCQQz66AP2ErfAmyZlhnQh 7X25h+X4WvcsD9gbmwD7al7YYbrxq4m6tyAlJ5uM40dh7MTbgDyNbzGwAi5x9W1i7Oa0 JQuXu9ZnRDlSF/fz11B3CBcmSxSujDGFBGxy2XrCJ18SeeY25hs27t+XECNbsjrrFZCT WUvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1687758927; s=strato-dkim-0002; d=strato.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=uGLdz3S1xYOcf7/Hp5FiA7LT6elpVU7X4yht5ubS848=; b=Et28lcPwyiozhcpks+fxVKJIGR8B/Y5urmyCB1k9VkluIY9qtrgvBVt0R8ffdbv/z3 O+4bnKdVOuBfaeCoM84ZDgpspBSIyaVdibShhnV2lbiJyNsW1liBFyQrGmt5dTYUvRrB mubLw/wsF4Yo6FbFFHrelOGMA7W5hmdWHsc2ngGZD3paZuTOFPaXXBosinJw6IvZ87CI qPDcYwARKDiufHzvcUEMQZTz6RwQAoxNuDoKE2Zqasd4COWM3G63jxPIf4haWs3eETLb 4MNjGNhw/BR7rQvwxRu9luczVX+EWPSYqm3FiH6yBfQIWbsnjJfibd66bfFc/pokRPVB l3+w== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1687758927; s=strato-dkim-0002; d=iokpp.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=uGLdz3S1xYOcf7/Hp5FiA7LT6elpVU7X4yht5ubS848=; b=FHio1GDrW3lWX1xVIMoYFB5eF+8yuHoMFyHQzgBeBtfGtXDzU7rrakxD+BcbcdeQgx EuHdnYpiLoxDAmDdis66Kkcln+PAuY0R6/vFWhOHpObjx05nYkbD53wnJvwunEYysGIB vBfcTloI045nLO6VswtSOKOZQsFiju+jOJdFEv7hdRCgmsNZxyQ1YkTE6uaaAGmeGAZI pCDFzTJQtknCztHYCl6ogsghjjj/Ngc36bP9z4cc9Zb3L7DnhfQzOaEPbI/mmMIEaTGT Y8XOAxGsqLb3Y2MkB4ruQA35ZxYtUtDc9G1javxjvueTRneOlnMW1fgh7J1uZwqVgSPQ LrdA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1687758927; s=strato-dkim-0003; d=iokpp.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=uGLdz3S1xYOcf7/Hp5FiA7LT6elpVU7X4yht5ubS848=; b=EvMfs2CATMuB7t0GopD93Ats62L8e4gJ7IhZOs+sBP+lGaJLfoH8waE21HbYVEE6sc okUDGs5b450223rUf+BQ== X-RZG-AUTH: ":LmkFe0i9dN8c2t4QQyGBB/NDXvjDB6pBSedrgBzPc9DUyubU4DD1QLj68UeUr1+U1RrW5o+P9bSFaHg+gZu+uCjL2b+VQTRnVQrIOQ==" Received: from blinux.speedport.ip by smtp.strato.de (RZmta 49.6.0 AUTH) with ESMTPSA id zb0c8bz5Q5tQVy4 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 26 Jun 2023 07:55:26 +0200 (CEST) From: Bean Huo <beanhuo@iokpp.de> To: 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, willy@infradead.org, hch@infradead.org Cc: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ocfs2-devel@oss.oracle.com, beanhuo@micron.com, Bean Huo <beanhuo@iokpp.de> Subject: [RESEND PATCH v3 0/2] clean up block_commit_write Date: Mon, 26 Jun 2023 07:55:16 +0200 Message-Id: <20230626055518.842392-1-beanhuo@iokpp.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769742926123154751?= X-GMAIL-MSGID: =?utf-8?q?1769744833636973274?= |
Series |
clean up block_commit_write
|
|
Message
Bean Huo
June 26, 2023, 5:55 a.m. UTC
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 Bean Huo (2): fs/buffer: clean up block_commit_write fs: convert block_commit_write to return void fs/buffer.c | 20 ++++++++------------ fs/ext4/move_extent.c | 7 ++----- fs/ocfs2/file.c | 7 +------ fs/udf/file.c | 6 +++--- include/linux/buffer_head.h | 2 +- 5 files changed, 15 insertions(+), 27 deletions(-)
Comments
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.