btrfs: tests: add self tests for extent buffer memory operations
authorQu Wenruo <wqu@suse.com>
Sat, 15 Jul 2023 11:08:28 +0000 (19:08 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:16 +0000 (14:52 +0200)
commit5864f1da6b165fc4735f02140b04fbfcb6ff27bf
tree6f3c451d04e8852d36681aebd9c397d76eae2913
parent257deed2a955fd73cc1ef53a96583edeab3ece1a
btrfs: tests: add self tests for extent buffer memory operations

The new self tests would populate a memory range with random bytes, then
copy it to the extent buffer, so that we can verify if the extent buffer
memory operation and memmove()/memcopy() are resulting the same
contents.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-io-tests.c