From 47dc6bd8a921a510a83cd8605d2ab772685a5543 Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Wed, 23 Aug 2023 10:33:03 -0400 Subject: [PATCH] btrfs-progs: update btrfs_split_item to match the in-kernel definition In the kernel new_key is const, update the definition in btrfs-progs to match the in-kernel definition. Signed-off-by: Josef Bacik Signed-off-by: David Sterba --- kernel-shared/ctree.c | 2 +- kernel-shared/ctree.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel-shared/ctree.c b/kernel-shared/ctree.c index 5db73352..92cd9600 100644 --- a/kernel-shared/ctree.c +++ b/kernel-shared/ctree.c @@ -2439,7 +2439,7 @@ again: int btrfs_split_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, - struct btrfs_key *new_key, + const struct btrfs_key *new_key, unsigned long split_offset) { u32 item_size; diff --git a/kernel-shared/ctree.h b/kernel-shared/ctree.h index 1bc5aa36..8bcbaaee 100644 --- a/kernel-shared/ctree.h +++ b/kernel-shared/ctree.h @@ -988,7 +988,7 @@ void btrfs_truncate_item(struct btrfs_path *path, u32 new_size, int from_end); int btrfs_split_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, - struct btrfs_key *new_key, + const struct btrfs_key *new_key, unsigned long split_offset); int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, const struct btrfs_key *key,