Skip to content

Commit 0a4e558

Browse files
forpsterChris Mason
authored andcommitted
btrfs: remove unused parameter from btrfs_header_fsid
Remove unused parameter, 'eb'. Unused since introduction in 5f39d39 Updated to be rebased against current upstream and correct diff supplied this time! Signed-off-by: Ross Kirk <ross.kirk@gmail.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
1 parent 724e231 commit 0a4e558

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎fs/btrfs/ctree.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ int btrfs_copy_root(struct btrfs_trans_handle *trans,
274274
else
275275
btrfs_set_header_owner(cow, new_root_objectid);
276276

277-
write_extent_buffer(cow, root->fs_info->fsid, btrfs_header_fsid(cow),
277+
write_extent_buffer(cow, root->fs_info->fsid, btrfs_header_fsid(),
278278
BTRFS_FSID_SIZE);
279279

280280
WARN_ON(btrfs_header_generation(buf) > trans->transid);
@@ -996,7 +996,7 @@ static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans,
996996
else
997997
btrfs_set_header_owner(cow, root->root_key.objectid);
998998

999-
write_extent_buffer(cow, root->fs_info->fsid, btrfs_header_fsid(cow),
999+
write_extent_buffer(cow, root->fs_info->fsid, btrfs_header_fsid(),
10001000
BTRFS_FSID_SIZE);
10011001

10021002
ret = update_ref_for_cow(trans, root, buf, cow, &last_ref);
@@ -3152,7 +3152,7 @@ static noinline int insert_new_root(struct btrfs_trans_handle *trans,
31523152
btrfs_set_header_backref_rev(c, BTRFS_MIXED_BACKREF_REV);
31533153
btrfs_set_header_owner(c, root->root_key.objectid);
31543154

3155-
write_extent_buffer(c, root->fs_info->fsid, btrfs_header_fsid(c),
3155+
write_extent_buffer(c, root->fs_info->fsid, btrfs_header_fsid(),
31563156
BTRFS_FSID_SIZE);
31573157

31583158
write_extent_buffer(c, root->fs_info->chunk_tree_uuid,
@@ -3291,7 +3291,7 @@ static noinline int split_node(struct btrfs_trans_handle *trans,
32913291
btrfs_set_header_backref_rev(split, BTRFS_MIXED_BACKREF_REV);
32923292
btrfs_set_header_owner(split, root->root_key.objectid);
32933293
write_extent_buffer(split, root->fs_info->fsid,
3294-
btrfs_header_fsid(split), BTRFS_FSID_SIZE);
3294+
btrfs_header_fsid(), BTRFS_FSID_SIZE);
32953295
write_extent_buffer(split, root->fs_info->chunk_tree_uuid,
32963296
btrfs_header_chunk_tree_uuid(split),
32973297
BTRFS_UUID_SIZE);
@@ -4046,7 +4046,7 @@ static noinline int split_leaf(struct btrfs_trans_handle *trans,
40464046
btrfs_set_header_owner(right, root->root_key.objectid);
40474047
btrfs_set_header_level(right, 0);
40484048
write_extent_buffer(right, root->fs_info->fsid,
4049-
btrfs_header_fsid(right), BTRFS_FSID_SIZE);
4049+
btrfs_header_fsid(), BTRFS_FSID_SIZE);
40504050

40514051
write_extent_buffer(right, root->fs_info->chunk_tree_uuid,
40524052
btrfs_header_chunk_tree_uuid(right),

‎fs/btrfs/ctree.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ static inline void btrfs_set_header_backref_rev(struct extent_buffer *eb,
26672667
btrfs_set_header_flags(eb, flags);
26682668
}
26692669

2670-
static inline unsigned long btrfs_header_fsid(struct extent_buffer *eb)
2670+
static inline unsigned long btrfs_header_fsid(void)
26712671
{
26722672
return offsetof(struct btrfs_header, fsid);
26732673
}

‎fs/btrfs/disk-io.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static int check_tree_block_fsid(struct btrfs_root *root,
495495
u8 fsid[BTRFS_UUID_SIZE];
496496
int ret = 1;
497497

498-
read_extent_buffer(eb, fsid, btrfs_header_fsid(eb), BTRFS_FSID_SIZE);
498+
read_extent_buffer(eb, fsid, btrfs_header_fsid(), BTRFS_FSID_SIZE);
499499
while (fs_devices) {
500500
if (!memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE)) {
501501
ret = 0;
@@ -1311,7 +1311,7 @@ struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
13111311
btrfs_set_header_owner(leaf, objectid);
13121312
root->node = leaf;
13131313

1314-
write_extent_buffer(leaf, fs_info->fsid, btrfs_header_fsid(leaf),
1314+
write_extent_buffer(leaf, fs_info->fsid, btrfs_header_fsid(),
13151315
BTRFS_FSID_SIZE);
13161316
write_extent_buffer(leaf, fs_info->chunk_tree_uuid,
13171317
btrfs_header_chunk_tree_uuid(leaf),
@@ -1398,7 +1398,7 @@ static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans,
13981398
root->node = leaf;
13991399

14001400
write_extent_buffer(root->node, root->fs_info->fsid,
1401-
btrfs_header_fsid(root->node), BTRFS_FSID_SIZE);
1401+
btrfs_header_fsid(), BTRFS_FSID_SIZE);
14021402
btrfs_mark_buffer_dirty(root->node);
14031403
btrfs_tree_unlock(root->node);
14041404
return root;

‎fs/btrfs/ioctl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ static noinline int create_subvol(struct inode *dir,
436436
btrfs_set_header_backref_rev(leaf, BTRFS_MIXED_BACKREF_REV);
437437
btrfs_set_header_owner(leaf, objectid);
438438

439-
write_extent_buffer(leaf, root->fs_info->fsid, btrfs_header_fsid(leaf),
439+
write_extent_buffer(leaf, root->fs_info->fsid, btrfs_header_fsid(),
440440
BTRFS_FSID_SIZE);
441441
write_extent_buffer(leaf, root->fs_info->chunk_tree_uuid,
442442
btrfs_header_chunk_tree_uuid(leaf),

0 commit comments

Comments
 (0)