projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3199366
)
btrfs: tests: properly initialize fs_info of extent buffer
author
David Sterba
<dsterba@suse.com>
Fri, 15 Mar 2019 16:42:07 +0000
(17:42 +0100)
committer
David Sterba
<dsterba@suse.com>
Mon, 29 Apr 2019 17:02:26 +0000
(19:02 +0200)
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>
fs/btrfs/tests/extent-io-tests.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/tests/extent-io-tests.c
b/fs/btrfs/tests/extent-io-tests.c
index 3064b61b110b9f1fc0ebdc64a695de91fd8ad395..e88b7c9667f815e803a9816e4f896d91287290f7 100644
(file)
--- 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;