summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-10-15 18:42:18 +0300
committerDavid Sterba <dsterba@suse.com>2019-11-18 17:51:46 +0100
commitfc2e4c5b3508f4d0ab981be9aa55bfb80bf971d1 (patch)
treeb75df6cecc2cd4b5acab04b0fbb9e761ad2a3e51 /fs/btrfs
parent01f0f9da9dc8b4d60921af92bc9329a1eb2fa8e0 (diff)
btrfs: Remove newest_gen argument from find_oldest_super_backup
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/disk-io.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 9d24bd3de595..1834ff4fabee 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -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;
@@ -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