btrfs-progs: remove the unnecessary BTRFS_SUPER_INFO_OFFSET path for tree block read
We used to use read_whole_eb() to read super block, but it's no longer the case (so long that I can not even find out which commit did the conversion). Thus there is no need for read_whole_eb() to handle super block read anymore. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
013d80648c
commit
7a0c4b5dc1
|
@ -305,8 +305,7 @@ int read_whole_eb(struct btrfs_fs_info *info, struct extent_buffer *eb, int mirr
|
|||
read_len = bytes_left;
|
||||
device = NULL;
|
||||
|
||||
if (!info->on_restoring &&
|
||||
eb->start != BTRFS_SUPER_INFO_OFFSET) {
|
||||
if (!info->on_restoring) {
|
||||
ret = btrfs_map_block(info, READ, eb->start + offset,
|
||||
&read_len, &multi, mirror, NULL);
|
||||
if (ret) {
|
||||
|
|
Loading…
Reference in New Issue