No functional changes. This helps to move the entire section into
a new function.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
goto error_brelse;
device->generation = btrfs_super_generation(disk_super);
- if (!latest_dev ||
- device->generation > latest_dev->generation)
- latest_dev = device;
if (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_SEEDING) {
device->writeable = 0;
&fs_devices->alloc_list);
}
brelse(bh);
+
+ if (!latest_dev ||
+ device->generation > latest_dev->generation)
+ latest_dev = device;
+
continue;
error_brelse: