diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index faf081302d02..7d40778a90e4 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -78,8 +78,10 @@ static noinline int create_subvol(struct btrfs_root *root, char *name, | |||
78 | leaf = btrfs_alloc_free_block(trans, root, root->leafsize, | 78 | leaf = btrfs_alloc_free_block(trans, root, root->leafsize, |
79 | objectid, trans->transid, 0, 0, | 79 | objectid, trans->transid, 0, 0, |
80 | 0, 0); | 80 | 0, 0); |
81 | if (IS_ERR(leaf)) | 81 | if (IS_ERR(leaf)) { |
82 | return PTR_ERR(leaf); | 82 | ret = PTR_ERR(leaf); |
83 | goto fail; | ||
84 | } | ||
83 | 85 | ||
84 | btrfs_set_header_nritems(leaf, 0); | 86 | btrfs_set_header_nritems(leaf, 0); |
85 | btrfs_set_header_level(leaf, 0); | 87 | btrfs_set_header_level(leaf, 0); |