Merge tag 'ext4_for_linus-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4

Pull ext4 updates from Ted Ts'o:
 "The bulk of the new lines was caused by adding KUnit tests, which
  makes it safer to validate AI generated patches.

  Three minor performance provements:

   - Spread the inodes of files in sibling directories over the block
     groups of a flex group. This avoids contention on the inode table
     buffer locks and significantly speeds up parallel file creation

   - Move the orphan list tracking fields in ext4_sb_info off the cache
     line shared with the journal state, which improves unlink
     performance on file systems without the orphan_file feature

   - Speed up fast commit replay for sparse files by skipping holes when
     shrinking the extent tree.

  A huge number of bug fixes, most of which were AI generated:

   - Fast commit fixes to avoid losing fsync'ed data after a journal
     flush or when part of an unwritten extent is zeroed out, to not
     fail journal recovery on a torn fast commit, and to propagate
     errors and validate inodes during replay

   - Check the return value of blkdev_issue_flush() in ext4 and jbd2,
     and record failed delalloc writeback and unwritten extent
     conversions as writeback errors so fsync() can report them

   - Fixes for EXT4_IOC_MIGRATE, including data loss for contiguous
     ranges longer than EXT_INIT_MAX_LEN, a logical block overflow with
     block sizes of 8k and larger, and error paths which freed extent
     tree blocks that were still in use

   - Fix stale data being returned after a failed zeroout, and after a
     FALLOC_FL_ZERO_RANGE or FALLOC_FL_WRITE_ZEROES which covers the EOF
     block

   - Fix out-of-bounds accesses in the inline data and in-inode xattr
     code when handling corrupted file systems

   - Fix i_size being advanced by a buffered write which failed with
     EFAULT

   - Fix use-after-frees in the discard work on a failed mount and in
     ext4_split_convert_extents()

   - Fix a buffer/folio lock inversion deadlock in
     __ext4_get_inode_loc() when the folio size is larger than the block
     size

   - Fix readdir position truncation on 32-bit kernels for directories
     larger than 4 GiB

   - Accept the orphan file created by e2fsprogs 1.47.4 on file systems
     with a 1k block size

   - Treat a directory entry rec_len of 0 as corruption for block sizes
     smaller than 64k

   - Return an error instead of using a bogus block number when the
     journal inode has a hole

   - Don't report ENOSPC or EDQUOT when converting inline data in
     truncate as a file system error

   - Fix the scan accounting in the extent status and jbd2 checkpoint
     shrinkers so that they stop once there is nothing left to scan

   - Complete the writeback of RWF_DONTCACHE writes in task context so
     that their folios are reliably dropped from the page cache

   - Only advertise atomic writes on inodes which can support them
     (excluding DAX and data=journal inodes), never fall back to
     buffered I/O for an atomic write, and set awu_max_opt in statx

   - Miscellaneous fixes for reference and memory leaks, error return
     values, documentation, and static checker warnings"

* tag 'ext4_for_linus-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (94 commits)
  ext4: add KUnit regression tests for inode migration fixes
  ext4: add KUnit tests for fs/ext4/dir.c
  ext4: add KUnit tests for fs/ext4/mmp.c
  ext4: add KUnit tests for fs/ext4/move_extent.c
  ext4: add KUnit tests for fs/ext4/fsmap.c
  ext4: expand KUnit tests in fs/ext4/extents-test.c for file range operations
  ext4: add KUnit tests for fs/ext4/indirect.c
  ext4: add KUnit tests for fs/ext4/migrate.c
  ext4: add KUnit tests for fs/ext4/resize.c
  ext4: add KUnit tests for fs/ext4/ioctl.c
  ext4: add KUnit tests for fs/ext4/sysfs.c
  ext4: add KUnit tests for fs/ext4/super.c
  ext4: enable full feature coverage in fs/ext4/.kunitconfig
  ext4: check multi-block overlap on left traversal in add_system_zone()
  ext4: add KUnit tests for fs/ext4/block_validity.c
  ext4: add KUnit tests for fs/ext4/orphan.c
  ext4: add KUnit tests for fs/ext4/balloc.c
  ext4: add KUnit tests for fs/ext4/ialloc.c
  ext4: expand KUnit tests for fs/ext4/inode.c
  ext4: add KUnit tests for fs/ext4/fast_commit.c
  ...