mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-27 05:27:56 +00:00
btrfs-progs: remove unused parameter from truncate_one_csum
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
497f974294
commit
175b972c6b
@ -336,8 +336,7 @@ fail:
|
|||||||
* This calls btrfs_truncate_item with the correct args based on the
|
* This calls btrfs_truncate_item with the correct args based on the
|
||||||
* overlap, and fixes up the key as required.
|
* overlap, and fixes up the key as required.
|
||||||
*/
|
*/
|
||||||
static noinline int truncate_one_csum(struct btrfs_trans_handle *trans,
|
static noinline int truncate_one_csum(struct btrfs_root *root,
|
||||||
struct btrfs_root *root,
|
|
||||||
struct btrfs_path *path,
|
struct btrfs_path *path,
|
||||||
struct btrfs_key *key,
|
struct btrfs_key *key,
|
||||||
u64 bytenr, u64 len)
|
u64 bytenr, u64 len)
|
||||||
@ -489,8 +488,7 @@ int btrfs_del_csums(struct btrfs_trans_handle *trans,
|
|||||||
|
|
||||||
key.offset = end_byte - 1;
|
key.offset = end_byte - 1;
|
||||||
} else {
|
} else {
|
||||||
ret = truncate_one_csum(trans, root, path,
|
ret = truncate_one_csum(root, path, &key, bytenr, len);
|
||||||
&key, bytenr, len);
|
|
||||||
BUG_ON(ret);
|
BUG_ON(ret);
|
||||||
}
|
}
|
||||||
btrfs_release_path(path);
|
btrfs_release_path(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user