]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
ext4: Atomic write test for extent split across leaf nodes for-next patches-in-queue v2025.10.20
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Fri, 19 Sep 2025 06:48:05 +0000 (12:18 +0530)
committerZorro Lang <zlang@kernel.org>
Sat, 18 Oct 2025 15:08:14 +0000 (23:08 +0800)
commitc4980080ba76d24d7ff732e04359eb622ccfb983
tree90a2b4162321c01e97579baf8471ee19de8f6616
parent4bbc4694a052ff6ccfbb26cfec1259999b060270
ext4: Atomic write test for extent split across leaf nodes

In ext4, even if an allocated range is physically and logically
contiguous, it can still be split into 2 extents. This is because ext4
does not merge extents across leaf nodes. This is an issue for atomic
writes since even for a continuous extent the map block could (in rare
cases) return a shorter map, hence tearning the write. This test creates
such a file and ensures that the atomic write handles this case
correctly

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/ext4/063 [new file with mode: 0755]
tests/ext4/063.out [new file with mode: 0644]