Loading fs/btrfs/disk-io.c +2 −4 Original line number Original line Diff line number Diff line Loading @@ -1821,8 +1821,7 @@ static int find_newest_super_backup(struct btrfs_fs_info *info) * in the backup array. This will set the backup_root_index * in the backup array. This will set the backup_root_index * field in the fs_info struct * field in the fs_info struct */ */ static void find_oldest_super_backup(struct btrfs_fs_info *info, static void find_oldest_super_backup(struct btrfs_fs_info *info) u64 newest_gen) { { int newest_index; int newest_index; Loading Loading @@ -2860,8 +2859,7 @@ int __cold open_ctree(struct super_block *sb, * run through our array of backup supers and setup * run through our array of backup supers and setup * our ring pointer to the oldest one * our ring pointer to the oldest one */ */ generation = btrfs_super_generation(disk_super); find_oldest_super_backup(fs_info); find_oldest_super_backup(fs_info, generation); /* /* * In the long term, we'll store the compression type in the super * In the long term, we'll store the compression type in the super Loading Loading
fs/btrfs/disk-io.c +2 −4 Original line number Original line Diff line number Diff line Loading @@ -1821,8 +1821,7 @@ static int find_newest_super_backup(struct btrfs_fs_info *info) * in the backup array. This will set the backup_root_index * in the backup array. This will set the backup_root_index * field in the fs_info struct * field in the fs_info struct */ */ static void find_oldest_super_backup(struct btrfs_fs_info *info, static void find_oldest_super_backup(struct btrfs_fs_info *info) u64 newest_gen) { { int newest_index; int newest_index; Loading Loading @@ -2860,8 +2859,7 @@ int __cold open_ctree(struct super_block *sb, * run through our array of backup supers and setup * run through our array of backup supers and setup * our ring pointer to the oldest one * our ring pointer to the oldest one */ */ generation = btrfs_super_generation(disk_super); find_oldest_super_backup(fs_info); find_oldest_super_backup(fs_info, generation); /* /* * In the long term, we'll store the compression type in the super * In the long term, we'll store the compression type in the super Loading