Searched refs:BTRFS_NUM_BACKUP_ROOTS (Results 1 – 2 of 2) sorted by relevance
1894 for (i = 0; i < BTRFS_NUM_BACKUP_ROOTS; i++) { in find_newest_super_backup()1902 if (newest_index == BTRFS_NUM_BACKUP_ROOTS - 1) { in find_newest_super_backup()1927 info->backup_root_index = (newest_index + 1) % BTRFS_NUM_BACKUP_ROOTS; in find_oldest_super_backup()1943 last_backup = (next_backup + BTRFS_NUM_BACKUP_ROOTS - 1) % in backup_super_roots()1944 BTRFS_NUM_BACKUP_ROOTS; in backup_super_roots()1963 info->backup_root_index = (next_backup + 1) % BTRFS_NUM_BACKUP_ROOTS; in backup_super_roots()2022 sizeof(*root_backup) * BTRFS_NUM_BACKUP_ROOTS); in backup_super_roots()2049 } else if (*num_backups_tried == BTRFS_NUM_BACKUP_ROOTS) { in next_root_backup()2054 newest = (*backup_index + BTRFS_NUM_BACKUP_ROOTS - 1) % in next_root_backup()2055 BTRFS_NUM_BACKUP_ROOTS; in next_root_backup()
413 #define BTRFS_NUM_BACKUP_ROOTS 4 macro496 struct btrfs_root_backup super_roots[BTRFS_NUM_BACKUP_ROOTS];