Searched refs:BTRFS_NUM_BACKUP_ROOTS (Results 1 – 2 of 2) sorted by relevance
1781 for (i = 0; i < BTRFS_NUM_BACKUP_ROOTS; i++) { in find_newest_super_backup()1789 if (newest_index == BTRFS_NUM_BACKUP_ROOTS - 1) { in find_newest_super_backup()1814 info->backup_root_index = (newest_index + 1) % BTRFS_NUM_BACKUP_ROOTS; in find_oldest_super_backup()1830 last_backup = (next_backup + BTRFS_NUM_BACKUP_ROOTS - 1) % in backup_super_roots()1831 BTRFS_NUM_BACKUP_ROOTS; in backup_super_roots()1850 info->backup_root_index = (next_backup + 1) % BTRFS_NUM_BACKUP_ROOTS; in backup_super_roots()1909 sizeof(*root_backup) * BTRFS_NUM_BACKUP_ROOTS); in backup_super_roots()1936 } else if (*num_backups_tried == BTRFS_NUM_BACKUP_ROOTS) { in next_root_backup()1941 newest = (*backup_index + BTRFS_NUM_BACKUP_ROOTS - 1) % in next_root_backup()1942 BTRFS_NUM_BACKUP_ROOTS; in next_root_backup()
403 #define BTRFS_NUM_BACKUP_ROOTS 4 macro485 struct btrfs_root_backup super_roots[BTRFS_NUM_BACKUP_ROOTS];