Skip to content

Commit

Permalink
btrfs: Remove newest_gen argument from find_oldest_super_backup
Browse files Browse the repository at this point in the history
It's no longer needed following cleanups around find_newest_backup_root

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
Nikolay Borisov authored and David Sterba committed Nov 18, 2019
1 parent 01f0f9d commit fc2e4c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* field in the fs_info struct
*/
static void find_oldest_super_backup(struct btrfs_fs_info *info,
u64 newest_gen)
static void find_oldest_super_backup(struct btrfs_fs_info *info)
{
int newest_index;

Expand Down Expand Up @@ -2860,8 +2859,7 @@ int __cold open_ctree(struct super_block *sb,
* run through our array of backup supers and setup
* our ring pointer to the oldest one
*/
generation = btrfs_super_generation(disk_super);
find_oldest_super_backup(fs_info, generation);
find_oldest_super_backup(fs_info);

/*
* In the long term, we'll store the compression type in the super
Expand Down

0 comments on commit fc2e4c5

Please sign in to comment.