btrfs-progs: update btrfs_insert_empty_item to match the kernel

In the kernel the key for btrfs_insert_empty_item is a const, update the
helper to match the in-kernel version.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Josef Bacik 2023-08-23 10:32:56 -04:00 committed by David Sterba
parent 8920697c4c
commit cc8904e8b5
1 changed files with 1 additions and 1 deletions

View File

@ -1040,7 +1040,7 @@ int btrfs_insert_empty_items(struct btrfs_trans_handle *trans,
static inline int btrfs_insert_empty_item(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct btrfs_path *path,
struct btrfs_key *key,
const struct btrfs_key *key,
u32 data_size)
{
struct btrfs_item_batch batch;