diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 80fe3c654612..6eaadddaca9f 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -698,8 +698,7 @@ static noinline int create_subvol(struct inode *dir, | |||
698 | ret = btrfs_update_inode(trans, root, dir); | 698 | ret = btrfs_update_inode(trans, root, dir); |
699 | BUG_ON(ret); | 699 | BUG_ON(ret); |
700 | 700 | ||
701 | ret = btrfs_add_root_ref(trans, fs_info, | 701 | ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, |
702 | objectid, root->root_key.objectid, | ||
703 | btrfs_ino(BTRFS_I(dir)), index, name, namelen); | 702 | btrfs_ino(BTRFS_I(dir)), index, name, namelen); |
704 | BUG_ON(ret); | 703 | BUG_ON(ret); |
705 | 704 | ||