summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-02 13:38:44 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:47 +0100
commitc6eae415eef826a0e17642d737ec33a099b932cf (patch)
tree5a8ffc382f750b6a0910298b3ae895d5a7a5479b
parent4069aa73d333ea8b6436d593a0e18fc56071b4fe (diff)
btrfs-progs: drop unused argument from btrfs_extend_item
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--ctree.c3
-rw-r--r--ctree.h4
-rw-r--r--dir-item.c2
-rw-r--r--extent-tree.c4
-rw-r--r--file-item.c2
-rw-r--r--inode-item.c4
6 files changed, 9 insertions, 10 deletions
diff --git a/ctree.c b/ctree.c
index dd61abcb..162e596d 100644
--- a/ctree.c
+++ b/ctree.c
@@ -2390,8 +2390,7 @@ int btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
return ret;
}
-int btrfs_extend_item(struct btrfs_trans_handle *trans,
- struct btrfs_root *root, struct btrfs_path *path,
+int btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
u32 data_size)
{
int ret = 0;
diff --git a/ctree.h b/ctree.h
index d92f7782..08397fa7 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2598,8 +2598,8 @@ int btrfs_copy_root(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct extent_buffer *buf,
struct extent_buffer **cow_ret, u64 new_root_objectid);
-int btrfs_extend_item(struct btrfs_trans_handle *trans, struct btrfs_root
- *root, struct btrfs_path *path, u32 data_size);
+int btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
+ u32 data_size);
int btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
u32 new_size, int from_end);
int btrfs_split_item(struct btrfs_trans_handle *trans,
diff --git a/dir-item.c b/dir-item.c
index 29d5aad5..e34f6935 100644
--- a/dir-item.c
+++ b/dir-item.c
@@ -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);
if (di)
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);
}
if (ret < 0)
diff --git a/extent-tree.c b/extent-tree.c
index 9c0ecb36..f9ab1d67 100644
--- a/extent-tree.c
+++ b/extent-tree.c
@@ -574,7 +574,7 @@ static int convert_extent_item_v0(struct btrfs_trans_handle *trans,
return ret;
BUG_ON(ret);
- ret = btrfs_extend_item(trans, root, path, new_size);
+ ret = btrfs_extend_item(root, path, new_size);
BUG_ON(ret);
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);
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);
ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item);
diff --git a/file-item.c b/file-item.c
index d341b555..22e508b8 100644
--- a/file-item.c
+++ b/file-item.c
@@ -277,7 +277,7 @@ int btrfs_csum_file_block(struct btrfs_trans_handle *trans,
diff = diff - btrfs_item_size_nr(leaf, path->slots[0]);
if (diff != csum_size)
goto insert;
- ret = btrfs_extend_item(trans, root, path, diff);
+ ret = btrfs_extend_item(root, path, diff);
BUG_ON(ret);
goto csum;
}
diff --git a/inode-item.c b/inode-item.c
index 48f0e6f0..4c7ceac4 100644
--- a/inode-item.c
+++ b/inode-item.c
@@ -79,7 +79,7 @@ int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans,
goto out;
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);
ref = btrfs_item_ptr(path->nodes[0], path->slots[0],
struct btrfs_inode_ref);
@@ -354,7 +354,7 @@ int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans,
name, name_len, NULL))
goto out;
- btrfs_extend_item(trans, root, path, ins_len);
+ btrfs_extend_item(root, path, ins_len);
ret = 0;
}