]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: tests: fix return 0 on rmap test failure
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 5 Jan 2026 08:19:05 +0000 (17:19 +0900)
committerDavid Sterba <dsterba@suse.com>
Fri, 9 Jan 2026 16:41:48 +0000 (17:41 +0100)
commitd5fac7ddb38cd627a8fc2b87e5b588b48a803956
tree3ed18685367c620845409b3fb6725fb1a646b51a
parentbe1c2e8afe3ac4a4f15a13f6844619c2cf47b1d1
btrfs: tests: fix return 0 on rmap test failure

In test_rmap_blocks(), we have ret = 0 before checking the results. We need
to set it to -EINVAL, so that a mismatching result will return -EINVAL not
0.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-map-tests.c