btrfs: implement delayed inode items operation
[pandora-kernel.git] / fs / btrfs / ioctl.c
index 2616f7e..df59401 100644 (file)
@@ -422,7 +422,7 @@ static noinline int create_subvol(struct btrfs_root *root,
        BUG_ON(ret);
 
        ret = btrfs_insert_dir_item(trans, root,
-                                   name, namelen, dir->i_ino, &key,
+                                   name, namelen, dir, &key,
                                    BTRFS_FT_DIR, index);
        if (ret)
                goto fail;