From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0570D4C8FE3 for ; Wed, 29 Jul 2026 19:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785353426; cv=none; b=U+xSMxW+dqIQy1Q8XCgNyuuYMBxHmGYxZcip2zciUPW8IMgpBKtIoWflYvWxT6o4ZtqKPksDXZxhm22DUZZ5nA3XZtpOlsX9ZeNCmU9xwXmBncpOTEeVhjLShavQYWbcTRwTxlNONzbNnKGitej///JFu0//vQ7aJGG4qCZ5yUE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785353426; c=relaxed/simple; bh=mjtFePw905Ih8lZM0jTOp001M3VsZYjlem3tQ4B9G6o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Sau4ephkMhgLFnyZ4hT7JdS/TBrL9KiMDMxlD4yeBVjriCjB49Y7sG5aP4tGR7/Ex+3fcyt2qvtRgkSKuZrcYvk1x3dIbgAQz7DQi1BZ8RYY5vR64zlpGwXBBBAUC+65w4HjohSmljQ0yia51A081zl/KC9VCXAoG6qh4ebtGdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZaTGMMzL; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZaTGMMzL" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-8453427d3f4so1440314b3a.3 for ; Wed, 29 Jul 2026 12:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785353418; x=1785958218; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=t0HucSFNwCrhhqVsgsZLRy5u6x5BGWTlUoNlDXYASAs=; b=ZaTGMMzL0y7gj1mhiwNikYREV2yRDps3jAibpTH0klMMs7NxfSdlkT2PG6RsWrvMDb 4+07TF/n9G3jWNhIJErhILiYEvIvrFa5/+YiQa/a56mtIayLBpaIwkZhOkWUVLMyDr+t XdRxaP9YhX14o10k6iGq1yUE42w0VvhWdm9H+vYSq+9gZ+4bMVUzZ7yL+yQku+xa0Qwz UlVujzrB/7u3BF7mhR0Ez3Plrkquaz0n7v+eRxGA51Q+lZsmoWEofprJGi0X3vO7eXvo xTAgjowexqWopGOiOKzivQCKlZYftyYYQJovLUAf7TGwhSCu3COwe5vITBd3PzLiFY7O o+0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785353418; x=1785958218; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=t0HucSFNwCrhhqVsgsZLRy5u6x5BGWTlUoNlDXYASAs=; b=MADOJEkOnCA06dMQ99Qqm78eDs2rzjHwD9Jm/qQ3WbZagqMF6VX7IOc/qRsvT0Giad otDUqwMDYNNWRNOaNK8diLIiN/S2Tn1oBNc45Y/2mS+ABZmD8l0FCmliemGRznB1S5Py WZvXaeXGI+oQSLYdqigG4HN7IYHbxUGCSFz84eCai1MUxGOyioQixzrRwCuF4meHDwtE bJmLloG0pYnXDQTC03Hn1xXPSaQcgQkrmKRwpS4D39NRyZWmUrlvN2FSh1dcdSUStMq9 cey94OoE7jS2AnAkTOj4z2PY95YYBlKhgryUc8OmskBPQZOIugwORTp/xrcyTunFhmBp r0xQ== X-Forwarded-Encrypted: i=1; AHgh+Rq7Sy+IirAHOIuFv/Uylea7zls+SMuHwIHejj90RuM5OIir8JRXwoIwm6RIgmabtLmIEPuWujQXKH2i@vger.kernel.org X-Gm-Message-State: AOJu0Yyl7GhS+jyzZxSvPavejnPtNvqTSzZoqcav4duKW+uTNcMvKml4 DccC9ZfM/NkP+a/VJaiKNBJxHXyOKUF5NENErrIEdv9igW2sGp2Rh56d X-Gm-Gg: AR+sD11SCMtFQnIJAQFNP/ilNUFEw2SKVHTTMkQUqnUXF31B73hKWKvBfAXQAqZKazV q0fvtjUlPKCc5KeRfc1xjIHxgkkY7O2plELfVXSCxxKpy8UiI4x6TI0QhDnMvu1kA+Kikti5GOg Np8DdUPwJ8GIyMT290+AKV/Z7tFVPdVOnWv98JhDKxmLvp/smPbBNtst+76WTU80BMIaXDZ6u4O koNyV4ReKSBnHvBk/zgPkJeFZn6maIkXlmqGlXKIyWojCXHaY687eKpjWX6tt3vTsEMXtArZ6yc R6hm0ZRUT9rsXkeP6vitQdiDj4eRBwUw8jREOX4WfNadOlG+JyAzM2RAGcmnOjK4LGia5WagD50 gaWtca9fy463OXD//8sk6sZSMXQf5M7QLo27axBqAS4e1BgcRmdVR7btxDQzo6QybiAnf1VBsdG 2FHgI0VqSZBseiH0FqvFYGIL/VXIh+mVM2+EgERaBL+ZaP/dwFU5hs9tO1dROw9eccHZ/1Ncjkj 2UQr1lrT9Bq4BxDA42tjuTKaRfNk4YRUe3rLZI= X-Received: by 2002:a05:6a00:a02:b0:84e:24f:2677 with SMTP id d2e1a72fcca58-84eb9e82597mr91426b3a.4.1785353417595; Wed, 29 Jul 2026 12:30:17 -0700 (PDT) Received: from localhost ([2a03:2880:ff:2::]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cbdb55c5b7bsm1288273a12.0.2026.07.29.12.30.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2026 12:30:16 -0700 (PDT) From: Joanne Koong To: Christian Brauner , hch@lst.de, "Darrick J . Wong" , linux-fsdevel@vger.kernel.org Cc: changfengnan@bytedance.com, kbusch@kernel.org, Matthew Wilcox , Jan Kara , Jonathan Corbet , David Sterba , Gao Xiang , Namjae Jeon , Theodore Ts'o , Jaegeuk Kim , Miklos Szeredi , Andreas Gruenbacher , Mikulas Patocka , Hyunchul Lee , Konstantin Komarov , Carlos Maiolino , Damien Le Moal , libaokun@linux.alibaba.com, bfoster@redhat.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org Subject: [PATCH v5 12/22] zonefs: convert iomap ops to ->iomap_next() Date: Wed, 29 Jul 2026 12:27:27 -0700 Message-ID: <20260729192737.3190206-13-joannelkoong@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260729192737.3190206-1-joannelkoong@gmail.com> References: <20260729192737.3190206-1-joannelkoong@gmail.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert zonefs iomap_ops to the new ->iomap_next() callback. Each callback is generated with the DEFINE_IOMAP_ITER_NEXT() macro, which wraps the iomap_iter_next() helper to finish the previous mapping if needed and produce the next one. No functional changes are intended. Acked-by: Damien Le Moal Signed-off-by: Joanne Koong --- fs/zonefs/file.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fs/zonefs/file.c b/fs/zonefs/file.c index 5ada33f70bb4..5b34849be7a2 100644 --- a/fs/zonefs/file.c +++ b/fs/zonefs/file.c @@ -57,8 +57,10 @@ static int zonefs_read_iomap_begin(struct inode *inode, loff_t offset, return 0; } +static DEFINE_IOMAP_ITER_NEXT(zonefs_read_iomap_next, zonefs_read_iomap_begin); + static const struct iomap_ops zonefs_read_iomap_ops = { - .iomap_begin = zonefs_read_iomap_begin, + .iomap_next = zonefs_read_iomap_next, }; static int zonefs_write_iomap_begin(struct inode *inode, loff_t offset, @@ -106,8 +108,11 @@ static int zonefs_write_iomap_begin(struct inode *inode, loff_t offset, return 0; } +static DEFINE_IOMAP_ITER_NEXT(zonefs_write_iomap_next, + zonefs_write_iomap_begin); + static const struct iomap_ops zonefs_write_iomap_ops = { - .iomap_begin = zonefs_write_iomap_begin, + .iomap_next = zonefs_write_iomap_next, }; static int zonefs_read_folio(struct file *unused, struct folio *folio) -- 2.52.0