linux/fs/ntfs3
Christoph Hellwig 044472d5ee
iomap: consolidate bio submission
Add a iomap_bio_submit_read_endio helper factored out of
iomap_bio_submit_read to that all ->submit_read implementations for
iomap_read_ops that use iomap_bio_read_folio_range can shared the
logic.

Right now that logic is mostly trivial, but already has a bug for XFS
because the XFS version is too trivial:  file system integrity validation
needs a workqueue context and thus can't happen from the default iomap
bi_end_io I/O handler.  Unfortunately the iomap refactoring just before
fs integrity landed moved code around here and the call go misplaced,
meaning it never got called.  The PI information still is verified by
the block layer, but the offloading is less efficient (and the future
userspace interface can't get at it).

Fixes: 0b10a37052 ("iomap: support T10 protection information")
Cc: stable@vger.kernel.org # v7.1
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260629121750.3392300-2-hch@lst.de
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
2026-07-01 15:26:47 +02:00
..
lib treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
attrib.c ntfs3: Allocate iomap inline_data using alloc_page 2026-06-02 17:02:37 +02:00
attrlist.c fs/ntfs3: add delayed-allocation (delalloc) support 2026-02-16 17:23:51 +01:00
bitfunc.c fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring 2022-11-14 19:50:42 +03:00
bitmap.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c ntfs3: fix out-of-bounds read in ntfs_dir_emit() and hdr_find_e() 2026-06-02 17:02:40 +02:00
file.c Changes for 7.2-rc1 2026-06-24 10:05:53 -07:00
frecord.c fs/ntfs3: prevent potential lcn remains uninitialized 2026-06-10 12:36:51 +02:00
fslog.c fs/ntfs3: resize log->one_page_buf when adopting on-disk page size 2026-06-10 12:37:09 +02:00
fsntfs.c fs/ntfs3: format code, deal with comments 2026-06-02 17:02:36 +02:00
index.c ntfs3: fix out-of-bounds read in ntfs_dir_emit() and hdr_find_e() 2026-06-02 17:02:40 +02:00
inode.c iomap: consolidate bio submission 2026-07-01 15:26:47 +02:00
Kconfig ntfs: add Kconfig and Makefile 2026-02-19 21:51:00 +09:00
lznt.c ntfs3: fix out-of-bounds read in decompress_lznt 2026-04-30 13:55:24 +02:00
Makefile fs/ntfs3: add a subset of W=1 warnings for stricter checks 2026-03-04 10:28:25 +01:00
namei.c fs/ntfs3: add fileattr support 2026-06-02 17:02:30 +02:00
ntfs_fs.h fs/ntfs3: handle delayed allocation overlap in run lookup 2026-06-02 17:02:32 +02:00
ntfs.h fs/ntfs3: add delayed-allocation (delalloc) support 2026-02-16 17:23:51 +01:00
record.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
run.c fs/ntfs3: handle delayed allocation overlap in run lookup 2026-06-02 17:02:32 +02:00
super.c ntfs3: handle set_blocksize failures 2026-05-21 13:39:36 +02:00
upcase.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
xattr.c ntfs3: reject direct userspace writes to reserved $LX* xattrs 2026-06-10 12:37:10 +02:00