|
@@ -105,13 +105,13 @@ int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans,
|
|
|
* to use for the second index (if one is created).
|
|
|
* Will return 0 or -ENOMEM
|
|
|
*/
|
|
|
-int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root
|
|
|
- *root, const char *name, int name_len,
|
|
|
- struct btrfs_inode *dir, struct btrfs_key *location,
|
|
|
- u8 type, u64 index)
|
|
|
+int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, const char *name,
|
|
|
+ int name_len, struct btrfs_inode *dir,
|
|
|
+ struct btrfs_key *location, u8 type, u64 index)
|
|
|
{
|
|
|
int ret = 0;
|
|
|
int ret2 = 0;
|
|
|
+ struct btrfs_root *root = dir->root;
|
|
|
struct btrfs_path *path;
|
|
|
struct btrfs_dir_item *dir_item;
|
|
|
struct extent_buffer *leaf;
|