There's another btrfs kernel commit that landed in v6.16-rc1 and fixes
another EOF truncation bug exposed by this test case, so add the commit
in a _fixed_by_kernel_commit call.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
_require_test
-[ $FSTYP == "btrfs" ] && _fixed_by_kernel_commit da2dccd7451d \
- "btrfs: fix hole expansion when writing at an offset beyond EOF"
+if [ $FSTYP == "btrfs" ]; then
+ _fixed_by_kernel_commit da2dccd7451d \
+ "btrfs: fix hole expansion when writing at an offset beyond EOF"
+ _fixed_by_kernel_commit 8e4f21f2b13d \
+ "btrfs: handle unaligned EOF truncation correctly for subpage cases"
+fi
# on failure, replace -q with -d to see post-eof writes in the dump output
run_fsx "-q -S 0 -e 1 -N 100000"