btrfs-progs: do not pass io_tree into verify_parent_transid
We do not use the io_tree, don't bother passing it into verify_parent_transid. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
ccee633f3a
commit
412eea9e97
|
@ -258,8 +258,7 @@ void readahead_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
|
|||
kfree(multi);
|
||||
}
|
||||
|
||||
static int verify_parent_transid(struct extent_io_tree *io_tree,
|
||||
struct extent_buffer *eb, u64 parent_transid,
|
||||
static int verify_parent_transid(struct extent_buffer *eb, u64 parent_transid,
|
||||
int ignore)
|
||||
{
|
||||
int ret;
|
||||
|
@ -374,8 +373,7 @@ struct extent_buffer* read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
|
|||
ret = read_whole_eb(fs_info, eb, mirror_num);
|
||||
if (ret == 0 && csum_tree_block(fs_info, eb, 1) == 0 &&
|
||||
check_tree_block(fs_info, eb) == 0 &&
|
||||
verify_parent_transid(&fs_info->extent_cache, eb,
|
||||
parent_transid, ignore) == 0) {
|
||||
verify_parent_transid(eb, parent_transid, ignore) == 0) {
|
||||
if (eb->flags & EXTENT_BAD_TRANSID &&
|
||||
list_empty(&eb->recow)) {
|
||||
list_add_tail(&eb->recow,
|
||||
|
@ -2273,8 +2271,7 @@ int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid)
|
|||
if (!ret)
|
||||
return ret;
|
||||
|
||||
ret = verify_parent_transid(&buf->fs_info->extent_cache, buf,
|
||||
parent_transid,
|
||||
ret = verify_parent_transid(buf, parent_transid,
|
||||
buf->fs_info->allow_transid_mismatch);
|
||||
return !ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue