summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tests
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-03-15 17:42:07 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:26 +0200
commit7b9586bc2b31b8f62da651cb0ddf926997c93954 (patch)
tree38080cc41e9461e9751b71bdd5231a93c7da7ef7 /fs/btrfs/tests
parentbtrfs: tests: use standard error message after block group allocation failure (diff)
downloadlinux-7b9586bc2b31b8f62da651cb0ddf926997c93954.tar.xz
linux-7b9586bc2b31b8f62da651cb0ddf926997c93954.zip
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: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tests')
-rw-r--r--fs/btrfs/tests/extent-io-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tests/extent-io-tests.c b/fs/btrfs/tests/extent-io-tests.c
index 3064b61b110b..e88b7c9667f8 100644
--- a/fs/btrfs/tests/extent-io-tests.c
+++ b/fs/btrfs/tests/extent-io-tests.c
@@ -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. */
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) {
test_std_err(TEST_ALLOC_ROOT);
ret = -ENOMEM;