btrfs: tests: allocate dummy fs_info and root in test_find_delalloc()
authorDavid Sterba <dsterba@suse.com>
Mon, 29 Jan 2024 18:04:33 +0000 (19:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:49 +0000 (16:24 +0100)
commitb2136cc288fce2f24a92f3d656531b2d50ebec5a
tree7cae8e71cbd451ff78fc09c1450d12f8275363d1
parent737e6e5f0c8ebb584d055fb027bc22f856a80d1a
btrfs: tests: allocate dummy fs_info and root in test_find_delalloc()

Allocate fs_info and root to have a valid fs_info pointer in case it's
dereferenced by a helper outside of tests, like find_lock_delalloc_range().

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