diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 4e5149461435..de25e4255aeb 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -430,6 +430,11 @@ static noinline int create_subvol(struct btrfs_root *root, | |||
430 | btrfs_record_root_in_trans(trans, new_root); | 430 | btrfs_record_root_in_trans(trans, new_root); |
431 | 431 | ||
432 | ret = btrfs_create_subvol_root(trans, new_root, new_dirid); | 432 | ret = btrfs_create_subvol_root(trans, new_root, new_dirid); |
433 | if (ret) { | ||
434 | /* We potentially lose an unused inode item here */ | ||
435 | goto fail; | ||
436 | } | ||
437 | |||
433 | /* | 438 | /* |
434 | * insert the directory item | 439 | * insert the directory item |
435 | */ | 440 | */ |