Searched refs:BTRFS_NUM_BACKUP_ROOTS (Results 1 – 2 of 2) sorted by relevance
1804 for (i = 0; i < BTRFS_NUM_BACKUP_ROOTS; i++) { in find_newest_super_backup()1812 if (newest_index == BTRFS_NUM_BACKUP_ROOTS - 1) { in find_newest_super_backup()1837 info->backup_root_index = (newest_index + 1) % BTRFS_NUM_BACKUP_ROOTS; in find_oldest_super_backup()1853 last_backup = (next_backup + BTRFS_NUM_BACKUP_ROOTS - 1) % in backup_super_roots()1854 BTRFS_NUM_BACKUP_ROOTS; in backup_super_roots()1873 info->backup_root_index = (next_backup + 1) % BTRFS_NUM_BACKUP_ROOTS; in backup_super_roots()1932 sizeof(*root_backup) * BTRFS_NUM_BACKUP_ROOTS); in backup_super_roots()1959 } else if (*num_backups_tried == BTRFS_NUM_BACKUP_ROOTS) { in next_root_backup()1964 newest = (*backup_index + BTRFS_NUM_BACKUP_ROOTS - 1) % in next_root_backup()1965 BTRFS_NUM_BACKUP_ROOTS; in next_root_backup()
178 #define BTRFS_NUM_BACKUP_ROOTS 4 macro265 struct btrfs_root_backup super_roots[BTRFS_NUM_BACKUP_ROOTS];