diff options
author | Ross Kirk <ross.kirk@gmail.com> | 2013-09-24 05:12:38 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 21:54:16 -0500 |
commit | 0a4e558609dd4df30a58a07d9eb14c5ddc2c1241 (patch) | |
tree | 1d17d22fd472991fb3f6f707f06eea9ccc8123a9 /fs | |
parent | 724e2315db3d59a8201d4a87c7c7a873e60e1ce0 (diff) |
btrfs: remove unused parameter from btrfs_header_fsid
Remove unused parameter, 'eb'. Unused since introduction in
5f39d397dfbe140a14edecd4e73c34ce23c4f9ee
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ctree.c | 10 | ||||
-rw-r--r-- | fs/btrfs/ctree.h | 2 | ||||
-rw-r--r-- | fs/btrfs/disk-io.c | 6 | ||||
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 6932686b61cf..6c5239b55495 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c | |||
@@ -274,7 +274,7 @@ int btrfs_copy_root(struct btrfs_trans_handle *trans, | |||
274 | else | 274 | else |
275 | btrfs_set_header_owner(cow, new_root_objectid); | 275 | btrfs_set_header_owner(cow, new_root_objectid); |
276 | 276 | ||
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(), |
278 | BTRFS_FSID_SIZE); | 278 | BTRFS_FSID_SIZE); |
279 | 279 | ||
280 | WARN_ON(btrfs_header_generation(buf) > trans->transid); | 280 | WARN_ON(btrfs_header_generation(buf) > trans->transid); |
@@ -996,7 +996,7 @@ static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans, | |||
996 | else | 996 | else |
997 | btrfs_set_header_owner(cow, root->root_key.objectid); | 997 | btrfs_set_header_owner(cow, root->root_key.objectid); |
998 | 998 | ||
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(), |
1000 | BTRFS_FSID_SIZE); | 1000 | BTRFS_FSID_SIZE); |
1001 | 1001 | ||
1002 | ret = update_ref_for_cow(trans, root, buf, cow, &last_ref); | 1002 | 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, | |||
3152 | btrfs_set_header_backref_rev(c, BTRFS_MIXED_BACKREF_REV); | 3152 | btrfs_set_header_backref_rev(c, BTRFS_MIXED_BACKREF_REV); |
3153 | btrfs_set_header_owner(c, root->root_key.objectid); | 3153 | btrfs_set_header_owner(c, root->root_key.objectid); |
3154 | 3154 | ||
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(), |
3156 | BTRFS_FSID_SIZE); | 3156 | BTRFS_FSID_SIZE); |
3157 | 3157 | ||
3158 | write_extent_buffer(c, root->fs_info->chunk_tree_uuid, | 3158 | write_extent_buffer(c, root->fs_info->chunk_tree_uuid, |
@@ -3291,7 +3291,7 @@ static noinline int split_node(struct btrfs_trans_handle *trans, | |||
3291 | btrfs_set_header_backref_rev(split, BTRFS_MIXED_BACKREF_REV); | 3291 | btrfs_set_header_backref_rev(split, BTRFS_MIXED_BACKREF_REV); |
3292 | btrfs_set_header_owner(split, root->root_key.objectid); | 3292 | btrfs_set_header_owner(split, root->root_key.objectid); |
3293 | write_extent_buffer(split, root->fs_info->fsid, | 3293 | write_extent_buffer(split, root->fs_info->fsid, |
3294 | btrfs_header_fsid(split), BTRFS_FSID_SIZE); | 3294 | btrfs_header_fsid(), BTRFS_FSID_SIZE); |
3295 | write_extent_buffer(split, root->fs_info->chunk_tree_uuid, | 3295 | write_extent_buffer(split, root->fs_info->chunk_tree_uuid, |
3296 | btrfs_header_chunk_tree_uuid(split), | 3296 | btrfs_header_chunk_tree_uuid(split), |
3297 | BTRFS_UUID_SIZE); | 3297 | BTRFS_UUID_SIZE); |
@@ -4046,7 +4046,7 @@ again: | |||
4046 | btrfs_set_header_owner(right, root->root_key.objectid); | 4046 | btrfs_set_header_owner(right, root->root_key.objectid); |
4047 | btrfs_set_header_level(right, 0); | 4047 | btrfs_set_header_level(right, 0); |
4048 | write_extent_buffer(right, root->fs_info->fsid, | 4048 | write_extent_buffer(right, root->fs_info->fsid, |
4049 | btrfs_header_fsid(right), BTRFS_FSID_SIZE); | 4049 | btrfs_header_fsid(), BTRFS_FSID_SIZE); |
4050 | 4050 | ||
4051 | write_extent_buffer(right, root->fs_info->chunk_tree_uuid, | 4051 | write_extent_buffer(right, root->fs_info->chunk_tree_uuid, |
4052 | btrfs_header_chunk_tree_uuid(right), | 4052 | btrfs_header_chunk_tree_uuid(right), |
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index ee0b8aa82828..ee8972b9f1ab 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2667,7 +2667,7 @@ static inline void btrfs_set_header_backref_rev(struct extent_buffer *eb, | |||
2667 | btrfs_set_header_flags(eb, flags); | 2667 | btrfs_set_header_flags(eb, flags); |
2668 | } | 2668 | } |
2669 | 2669 | ||
2670 | static inline unsigned long btrfs_header_fsid(struct extent_buffer *eb) | 2670 | static inline unsigned long btrfs_header_fsid(void) |
2671 | { | 2671 | { |
2672 | return offsetof(struct btrfs_header, fsid); | 2672 | return offsetof(struct btrfs_header, fsid); |
2673 | } | 2673 | } |
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index b131d716d5a5..ade6c0e79616 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -495,7 +495,7 @@ static int check_tree_block_fsid(struct btrfs_root *root, | |||
495 | u8 fsid[BTRFS_UUID_SIZE]; | 495 | u8 fsid[BTRFS_UUID_SIZE]; |
496 | int ret = 1; | 496 | int ret = 1; |
497 | 497 | ||
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); |
499 | while (fs_devices) { | 499 | while (fs_devices) { |
500 | if (!memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE)) { | 500 | if (!memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE)) { |
501 | ret = 0; | 501 | ret = 0; |
@@ -1311,7 +1311,7 @@ struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, | |||
1311 | btrfs_set_header_owner(leaf, objectid); | 1311 | btrfs_set_header_owner(leaf, objectid); |
1312 | root->node = leaf; | 1312 | root->node = leaf; |
1313 | 1313 | ||
1314 | write_extent_buffer(leaf, fs_info->fsid, btrfs_header_fsid(leaf), | 1314 | write_extent_buffer(leaf, fs_info->fsid, btrfs_header_fsid(), |
1315 | BTRFS_FSID_SIZE); | 1315 | BTRFS_FSID_SIZE); |
1316 | write_extent_buffer(leaf, fs_info->chunk_tree_uuid, | 1316 | write_extent_buffer(leaf, fs_info->chunk_tree_uuid, |
1317 | btrfs_header_chunk_tree_uuid(leaf), | 1317 | btrfs_header_chunk_tree_uuid(leaf), |
@@ -1398,7 +1398,7 @@ static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, | |||
1398 | root->node = leaf; | 1398 | root->node = leaf; |
1399 | 1399 | ||
1400 | write_extent_buffer(root->node, root->fs_info->fsid, | 1400 | 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); |
1402 | btrfs_mark_buffer_dirty(root->node); | 1402 | btrfs_mark_buffer_dirty(root->node); |
1403 | btrfs_tree_unlock(root->node); | 1403 | btrfs_tree_unlock(root->node); |
1404 | return root; | 1404 | return root; |
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 385c58f2bba1..2c47e1a400a9 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -436,7 +436,7 @@ static noinline int create_subvol(struct inode *dir, | |||
436 | btrfs_set_header_backref_rev(leaf, BTRFS_MIXED_BACKREF_REV); | 436 | btrfs_set_header_backref_rev(leaf, BTRFS_MIXED_BACKREF_REV); |
437 | btrfs_set_header_owner(leaf, objectid); | 437 | btrfs_set_header_owner(leaf, objectid); |
438 | 438 | ||
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(), |
440 | BTRFS_FSID_SIZE); | 440 | BTRFS_FSID_SIZE); |
441 | write_extent_buffer(leaf, root->fs_info->chunk_tree_uuid, | 441 | write_extent_buffer(leaf, root->fs_info->chunk_tree_uuid, |
442 | btrfs_header_chunk_tree_uuid(leaf), | 442 | btrfs_header_chunk_tree_uuid(leaf), |