Skip to content

Commit 8f96bb7

Browse files
josefbacikkdave
authored andcommitted
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 <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent fd46762 commit 8f96bb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel-shared/ctree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ static noinline int split_leaf(struct btrfs_trans_handle *trans,
23222322
int btrfs_split_item(struct btrfs_trans_handle *trans,
23232323
struct btrfs_root *root,
23242324
struct btrfs_path *path,
2325-
struct btrfs_key *new_key,
2325+
const struct btrfs_key *new_key,
23262326
unsigned long split_offset)
23272327
{
23282328
u32 item_size;

kernel-shared/ctree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ void btrfs_truncate_item(struct btrfs_path *path, u32 new_size, int from_end);
980980
int btrfs_split_item(struct btrfs_trans_handle *trans,
981981
struct btrfs_root *root,
982982
struct btrfs_path *path,
983-
struct btrfs_key *new_key,
983+
const struct btrfs_key *new_key,
984984
unsigned long split_offset);
985985
int btrfs_search_slot(struct btrfs_trans_handle *trans,
986986
struct btrfs_root *root, const struct btrfs_key *key,

0 commit comments

Comments
 (0)