Commit 7b9586bc authored by David Sterba's avatar David Sterba

btrfs: tests: properly initialize fs_info of extent buffer

The fs_info is supposed to be valid, even though it's not used right
now and the test does not crash.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 3199366d
...@@ -417,7 +417,7 @@ static int test_eb_bitmaps(u32 sectorsize, u32 nodesize) ...@@ -417,7 +417,7 @@ static int test_eb_bitmaps(u32 sectorsize, u32 nodesize)
/* Do it over again with an extent buffer which isn't page-aligned. */ /* Do it over again with an extent buffer which isn't page-aligned. */
free_extent_buffer(eb); free_extent_buffer(eb);
eb = __alloc_dummy_extent_buffer(NULL, nodesize / 2, len); eb = __alloc_dummy_extent_buffer(fs_info, nodesize / 2, len);
if (!eb) { if (!eb) {
test_std_err(TEST_ALLOC_ROOT); test_std_err(TEST_ALLOC_ROOT);
ret = -ENOMEM; ret = -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment