From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 EF92D3A545E for ; Wed, 29 Jul 2026 19:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785353415; cv=none; b=KJfYc+vfgcba1GeWA/n2Z8oQ+wyaEaTnGD4DFOz+2odbWb/9uemUIBFvPOdaWvDYGaoU6OfzugZW5JhK0zDWpliCHjh3kZajY2y6hAGxNkTGrGf9dtFL3vuEkt6llxzE1hRHARSnwxYyVCe/62E6HVRGOh0fmRKf3X/3qvoYwJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785353415; c=relaxed/simple; bh=BB0sPqRZ88+T3km26e+GeLS3s0vMjVM5Qt+LGf7fCk0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CfGwC2rrSiaidAExz1z98IgxoWHE0QwHEbFs+/Nc/SRjy2XfFKi+1kHXTOOrRjED0+FRQUa06+MMKtlhKaa+PnW+Wi7fGPdFNML0j7L+5wjkYig2LAQSovcyAZVlxwENPGK9w4WJ18J95rMQS1i3d+uHi9BXLH15zUT8XVxVIog= 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=FVtuOpiJ; arc=none smtp.client-ip=209.85.210.173 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="FVtuOpiJ" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-8487088510aso1408867b3a.0 for ; Wed, 29 Jul 2026 12:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785353406; x=1785958206; 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=Q8M3ZYr7j0Vv2huOSINRreA5KjJf/RGJ9R7Nsb1zC5k=; b=FVtuOpiJjlY9BaC+J9TS+8Pu7eUI/LxnOMdM8kGq+AyojpDoWmhlnaAb2MXv5Czmmy Gs35lYe0m8dz6eTiH7lpBloK4z4BzyRTjkAfj+wfFXrhKRRkJMdjcyDxSG90U9xZjFID 3kUVuyOhdjvdRzN1QcW1AdW00oF9BTmk5z8Rt0f2ZmPz6w803se9rYyZVOpIHid0pgtV Qc6FleITsOd9vQmrhiHXgCCiMrlURahcw/DzdsScmqtNohrPAT8YDq1bbfS+3soUcclo ApZRV6XFa54PA7qMTYC6mEBe7zAVjX1kqXCOJAqhLeZTYkTX7shncecrh/uzrHu+SuFL J6kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785353406; x=1785958206; 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=Q8M3ZYr7j0Vv2huOSINRreA5KjJf/RGJ9R7Nsb1zC5k=; b=Sw80k+UrmWwVx2xblYvIyydWoQtrkLW6i1e6ZXMO/fm2uXImk11I3YmrS6PUfsK0d8 PH5ou0fEhnKjHG00hLhlfnfo2SocybrFI5HXcfNakDoAGkVYfvskPfZs9+pvQP4+AbTY Ie4gxprH6/IXJF4OGPvZ2zmo3r9e582SBi+u4voRSheutBWgiXzVqvjwMgv0ZBaphBs/ ocZfXbbiqZu6WhQzGLyNlg3U+AbpdM4JLLrD7CYQmT/SM2SBSEHOX+X5aTwRoRlNn84i U3vbIs92RPPeVQdEzkKtQWvFVpW5PHTRiHpxDiom6r90cUg1qE8mQfBuzzu+H8s8O7D3 EL6g== X-Forwarded-Encrypted: i=1; AHgh+RrJ+/8w3/sF3zB0078TzXDUv0ti3C5U3jRXsE3qq6UgWkTYiaHp9DySY/jkN5fpIJrqZB+I4ooK93s=@vger.kernel.org X-Gm-Message-State: AOJu0YyspXfMMPDXMMn1AJirPfc5FBdk+Cd/msPNitGvCZ3RZPOBYIoi aXjBay334opw3Whrtu1yxALQ1tCn/3M9pC4owBzO2bmAP1jLgzK+0YXp X-Gm-Gg: AR+sD10eMHqTfgsBOQ8ca9BD5ARRaZwQo4KsKpSFnyKhET3kRJLxY/THLjGKBN7mu65 imqIrTRr05Kk2aAmnYZ2s3m5UpcGT2Bcef3LwcoQtwB56FlqLixqStA5p7RkFCbF02ZZTIt/ZlJ gM2mKf9b/dkGUteRT6Y/pmyd8M7WYS+cjRr4+vlcYGqRjGsI5mnvz+c5OuCn5/0i9VP1jE7fv0r aDK2ZFL+zmFmKwxi5yhX34KlssUjcMwVm7J8C9v4UHTq7+ff5HnFwOrKue7a+UjZIdDLwCGCqLq jH8h6VqmavO2QFrbWxVakPYgoRhvA3RdqFeJcn+P74grN+UUtxr9m6rHXpr6tMuW8dWEHFCwfsi RjQg1k37j3ey37Dq3LCh7BEHYJlywPmfwuFYhrKddZWsq5wxFzaKdS/ufheaZRfWgeZddiv7Zi5 KLSPC7a3oasa0cPLZrnDr8fxbLGMuYyAyPQV1+f81nzgiuHN4IPO1Iv9/hmbop18i+cELgx4PQl KIsR2XRG4g+h6deNp47aAdtn1ACxjgubW5etmhq X-Received: by 2002:a05:6a00:a10:b0:845:ebbf:e7be with SMTP id d2e1a72fcca58-84eb9ec29f6mr102540b3a.23.1785353406354; Wed, 29 Jul 2026 12:30:06 -0700 (PDT) Received: from localhost ([2a03:2880:ff:70::]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84ea0374c15sm1847600b3a.51.2026.07.29.12.30.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2026 12:30:05 -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 08/22] ntfs3: convert iomap ops to ->iomap_next() Date: Wed, 29 Jul 2026 12:27:23 -0700 Message-ID: <20260729192737.3190206-9-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-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert ntfs3 iomap_ops to the new ->iomap_next() callback. The callback is generated with the DEFINE_IOMAP_ITER_NEXT_END() 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. Signed-off-by: Joanne Koong --- fs/ntfs3/inode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c index c43101cc064d..53031e71c8fc 100644 --- a/fs/ntfs3/inode.c +++ b/fs/ntfs3/inode.c @@ -2101,9 +2101,11 @@ const struct address_space_operations ntfs_aops_cmpr = { .invalidate_folio = iomap_invalidate_folio, }; +static DEFINE_IOMAP_ITER_NEXT_END(ntfs_iomap_next, ntfs_iomap_begin, + ntfs_iomap_end); + const struct iomap_ops ntfs_iomap_ops = { - .iomap_begin = ntfs_iomap_begin, - .iomap_end = ntfs_iomap_end, + .iomap_next = ntfs_iomap_next, }; const struct iomap_write_ops ntfs_iomap_folio_ops = { -- 2.52.0