]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: add a test for defrag of contiguous file extents
authorFilipe Manana <fdmanana@suse.com>
Mon, 4 Nov 2024 11:41:23 +0000 (11:41 +0000)
committerZorro Lang <zlang@kernel.org>
Wed, 6 Nov 2024 14:10:41 +0000 (22:10 +0800)
commit1e990ee9aaa05a4248a243be7385a6d7de6db724
tree31fbaf5bcf9950caff53c836ca6a066caeba9423
parent083bb0ea9473e709cc11ba0314fc4ab2ad8710a7
btrfs: add a test for defrag of contiguous file extents

Test that defrag merges adjacent extents that are contiguous.
This exercises a regression fixed by a patchset for the kernel that is
comprissed of the following patches:

  btrfs: fix extent map merging not happening for adjacent extents
  btrfs: fix defrag not merging contiguous extents due to merged extent maps

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/325 [new file with mode: 0755]
tests/btrfs/325.out [new file with mode: 0644]