mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-04 23:29:20 +00:00
btrfs-progs: drop unused argument from btrfs_extend_item
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
4069aa73d3
commit
c6eae415ee
3
ctree.c
3
ctree.c
@ -2390,8 +2390,7 @@ int btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int btrfs_extend_item(struct btrfs_trans_handle *trans,
|
int btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
|
||||||
struct btrfs_root *root, struct btrfs_path *path,
|
|
||||||
u32 data_size)
|
u32 data_size)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
4
ctree.h
4
ctree.h
@ -2598,8 +2598,8 @@ int btrfs_copy_root(struct btrfs_trans_handle *trans,
|
|||||||
struct btrfs_root *root,
|
struct btrfs_root *root,
|
||||||
struct extent_buffer *buf,
|
struct extent_buffer *buf,
|
||||||
struct extent_buffer **cow_ret, u64 new_root_objectid);
|
struct extent_buffer **cow_ret, u64 new_root_objectid);
|
||||||
int btrfs_extend_item(struct btrfs_trans_handle *trans, struct btrfs_root
|
int btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
|
||||||
*root, struct btrfs_path *path, u32 data_size);
|
u32 data_size);
|
||||||
int btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
|
int btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
|
||||||
u32 new_size, int from_end);
|
u32 new_size, int from_end);
|
||||||
int btrfs_split_item(struct btrfs_trans_handle *trans,
|
int btrfs_split_item(struct btrfs_trans_handle *trans,
|
||||||
|
@ -46,7 +46,7 @@ static struct btrfs_dir_item *insert_with_overflow(struct btrfs_trans_handle
|
|||||||
di = btrfs_match_dir_item_name(root, path, name, name_len);
|
di = btrfs_match_dir_item_name(root, path, name, name_len);
|
||||||
if (di)
|
if (di)
|
||||||
return ERR_PTR(-EEXIST);
|
return ERR_PTR(-EEXIST);
|
||||||
ret = btrfs_extend_item(trans, root, path, data_size);
|
ret = btrfs_extend_item(root, path, data_size);
|
||||||
WARN_ON(ret > 0);
|
WARN_ON(ret > 0);
|
||||||
}
|
}
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
@ -574,7 +574,7 @@ static int convert_extent_item_v0(struct btrfs_trans_handle *trans,
|
|||||||
return ret;
|
return ret;
|
||||||
BUG_ON(ret);
|
BUG_ON(ret);
|
||||||
|
|
||||||
ret = btrfs_extend_item(trans, root, path, new_size);
|
ret = btrfs_extend_item(root, path, new_size);
|
||||||
BUG_ON(ret);
|
BUG_ON(ret);
|
||||||
|
|
||||||
leaf = path->nodes[0];
|
leaf = path->nodes[0];
|
||||||
@ -1188,7 +1188,7 @@ static int setup_inline_extent_backref(struct btrfs_trans_handle *trans,
|
|||||||
type = extent_ref_type(parent, owner);
|
type = extent_ref_type(parent, owner);
|
||||||
size = btrfs_extent_inline_ref_size(type);
|
size = btrfs_extent_inline_ref_size(type);
|
||||||
|
|
||||||
ret = btrfs_extend_item(trans, root, path, size);
|
ret = btrfs_extend_item(root, path, size);
|
||||||
BUG_ON(ret);
|
BUG_ON(ret);
|
||||||
|
|
||||||
ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item);
|
ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item);
|
||||||
|
@ -277,7 +277,7 @@ int btrfs_csum_file_block(struct btrfs_trans_handle *trans,
|
|||||||
diff = diff - btrfs_item_size_nr(leaf, path->slots[0]);
|
diff = diff - btrfs_item_size_nr(leaf, path->slots[0]);
|
||||||
if (diff != csum_size)
|
if (diff != csum_size)
|
||||||
goto insert;
|
goto insert;
|
||||||
ret = btrfs_extend_item(trans, root, path, diff);
|
ret = btrfs_extend_item(root, path, diff);
|
||||||
BUG_ON(ret);
|
BUG_ON(ret);
|
||||||
goto csum;
|
goto csum;
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
old_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]);
|
old_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]);
|
||||||
ret = btrfs_extend_item(trans, root, path, ins_len);
|
ret = btrfs_extend_item(root, path, ins_len);
|
||||||
BUG_ON(ret);
|
BUG_ON(ret);
|
||||||
ref = btrfs_item_ptr(path->nodes[0], path->slots[0],
|
ref = btrfs_item_ptr(path->nodes[0], path->slots[0],
|
||||||
struct btrfs_inode_ref);
|
struct btrfs_inode_ref);
|
||||||
@ -354,7 +354,7 @@ int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans,
|
|||||||
name, name_len, NULL))
|
name, name_len, NULL))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
btrfs_extend_item(trans, root, path, ins_len);
|
btrfs_extend_item(root, path, ins_len);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user