Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1723332rwj; Sun, 18 Dec 2022 14:18:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7XayBIJgHH8xbUarWJjmxmoRXie++5ompsUNB7UWLW5YEj73UAoX+8GPzPLS4c5DNqWIPK X-Received: by 2002:a17:906:9b96:b0:7c1:6bd3:d38c with SMTP id dd22-20020a1709069b9600b007c16bd3d38cmr35261917ejc.32.1671401894813; Sun, 18 Dec 2022 14:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671401894; cv=none; d=google.com; s=arc-20160816; b=OzoPNNZFoQ4KduAu4jIqSCmdZIUqGTRNnsdcA5qmznLdCfYd5jwC/oK+Gjv7kCGh8Q eNhF+1tkdkOlHbANX/o0byW4jCqYVD7hXUsoeLXzpWlDLBOSZRONR0a4exqguI4ET6h6 Axzpo7R3la24L2Asf1XDihnCgLGJ/uDsLvOFOettqujskRCUD76ZSdSKz78aBKZ1cnov W4ELMqy6Lyr1NVQ//ZY/mV/mE37n8JamYxSg7NfWFc0L2+swaAXXm/ww+5STTXFotd8m yQrrpV9PHypN7ifj7AHJpY9H8xCY9DnUgo7qtLbW6gZ++jv0c4GwA1fUZR9Gwe2JziPC 8b3Q== 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; bh=hSKP4WbWgB/zC73JeMrFU10HKsrDmKDAGSlTQQONUe8=; b=zt4NcU24MOq7Dz5EXJIqKNS7zFqknyONtlBzx8bsUdbXg1eLoBO820nZx4E2vIYT7l O9osEbO8OF+uvAsfdfo1uKwLdXdFDSITVNfnb0otKvp1pMjXewBgGiqjsz7PvfaKK/zY cj32m7LW/7ZL+SseM/u7etzWAD0AFmOtAYhR8lacHLsjLRfEk3QIIIxoqpX49omRbqgA EKxAv8pI0xPLK6I1nN4ODvaBkHk4BiSe0xsPtlKaOHOjIHx3rJltmqivrE7hU7sYmVL5 AywKtXVUPY7a6ZG7hr9EcjwA6iaz3941EByyBKvNhu6zY/t+pn+z4gGSgWr7eh3+jj9L zAIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B9r3YLNl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id un2-20020a170907cb8200b007bd112b2764si6544206ejc.381.2022.12.18.14.17.52; Sun, 18 Dec 2022 14:18:14 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=B9r3YLNl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbiLRWMn (ORCPT + 99 others); Sun, 18 Dec 2022 17:12:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231225AbiLRWMk (ORCPT ); Sun, 18 Dec 2022 17:12:40 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC420114A for ; Sun, 18 Dec 2022 14:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671401467; h=from:from:reply-to:subject:subject: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=hSKP4WbWgB/zC73JeMrFU10HKsrDmKDAGSlTQQONUe8=; b=B9r3YLNliV+lwUXBX+r6vfKQ7tf8CW7ARS2gOLPIxnsF0DtEi7l7Cl5SkYnBf335t814g9 RVWigEo8H3vbBoMmhGiLqFPsin8d0RKmVo+bYWSav5h9oqJ3z/bb4wrs8XC/WHczGZ6tm7 Da3n9wKxvz5wy/r/IP39+QIUbHSx/98= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-568-IZQb1PUaPhueqY7O5d6ozw-1; Sun, 18 Dec 2022 17:10:57 -0500 X-MC-Unique: IZQb1PUaPhueqY7O5d6ozw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4E6A21C068C6; Sun, 18 Dec 2022 22:10:57 +0000 (UTC) Received: from pasta.redhat.com (ovpn-192-22.brq.redhat.com [10.40.192.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F1AC2166B26; Sun, 18 Dec 2022 22:10:55 +0000 (UTC) From: Andreas Gruenbacher To: Christoph Hellwig , "Darrick J . Wong" , Alexander Viro , Matthew Wilcox Cc: Andreas Gruenbacher , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, cluster-devel@redhat.com Subject: [RFC v4 0/7] Turn iomap_page_ops into iomap_folio_ops Date: Sun, 18 Dec 2022 23:10:47 +0100 Message-Id: <20221218221054.3946886-1-agruenba@redhat.com> In-Reply-To: <20221216150626.670312-1-agruenba@redhat.com> References: <20221216150626.670312-1-agruenba@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Here's an updated version that changes iomap_folio_prepare() to return an ERR_PTR() instead of NULL when the folio cannot be obtained as suggested by Matthew Wilcox. Thanks, Andreas Andreas Gruenbacher (7): fs: Add folio_may_straddle_isize helper iomap: Add iomap_folio_done helper iomap/gfs2: Unlock and put folio in page_done handler iomap: Add iomap_folio_prepare helper iomap/gfs2: Get page in page_prepare handler iomap/xfs: Eliminate the iomap_valid handler iomap: Rename page_ops to folio_ops fs/buffer.c | 5 +-- fs/ext4/inode.c | 13 +++--- fs/gfs2/bmap.c | 43 ++++++++++++------ fs/iomap/buffered-io.c | 98 ++++++++++++++++++++++-------------------- fs/xfs/xfs_iomap.c | 42 ++++++++++++------ include/linux/iomap.h | 46 +++++++------------- include/linux/mm.h | 2 + mm/truncate.c | 35 +++++++++++++++ 8 files changed, 172 insertions(+), 112 deletions(-) -- 2.38.1