mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 23:52:17 +00:00
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 <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
692b68110e
commit
47dc6bd8a9
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user