diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 9f68c6898653..20c111b3fa0d 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1312,7 +1312,9 @@ again: | |||
1312 | spin_lock_init(&root->cache_lock); | 1312 | spin_lock_init(&root->cache_lock); |
1313 | init_waitqueue_head(&root->cache_wait); | 1313 | init_waitqueue_head(&root->cache_wait); |
1314 | 1314 | ||
1315 | set_anon_super(&root->anon_super, NULL); | 1315 | ret = set_anon_super(&root->anon_super, NULL); |
1316 | if (ret) | ||
1317 | goto fail; | ||
1316 | 1318 | ||
1317 | if (btrfs_root_refs(&root->root_item) == 0) { | 1319 | if (btrfs_root_refs(&root->root_item) == 0) { |
1318 | ret = -ENOENT; | 1320 | ret = -ENOENT; |