btrfs-progs: update btrfs_insert_item to match the kernel
This has const struct btrfs_key instead of just struct btrfs_key, update this to make it more straightforward to sync ctree.c. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
298eebd439
commit
fbaff3b121
|
@ -2797,9 +2797,9 @@ out:
|
|||
* Given a key and some data, insert an item into the tree.
|
||||
* This does all the path init required, making room in the tree if needed.
|
||||
*/
|
||||
int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root
|
||||
*root, struct btrfs_key *cpu_key, void *data, u32
|
||||
data_size)
|
||||
int btrfs_insert_item(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root, const struct btrfs_key *cpu_key,
|
||||
void *data, u32 data_size)
|
||||
{
|
||||
int ret = 0;
|
||||
struct btrfs_path *path;
|
||||
|
|
|
@ -1030,8 +1030,9 @@ struct btrfs_item_batch {
|
|||
int nr;
|
||||
};
|
||||
|
||||
int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root
|
||||
*root, struct btrfs_key *key, void *data, u32 data_size);
|
||||
int btrfs_insert_item(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root, const struct btrfs_key *key,
|
||||
void *data, u32 data_size);
|
||||
int btrfs_insert_empty_items(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root,
|
||||
struct btrfs_path *path,
|
||||
|
|
Loading…
Reference in New Issue