Lines Matching defs:sector
364 /* The number of entries in this sector */
367 /* Journal entries for this sector */
372 /* The number of entries in each sector (except the last) when filled */
379 /* The number of entries in each v1 sector (except the last) when filled */
383 /* The number of entries in the last sector when a block is full */
422 /* The format of each sector of a reference_block on disk. */
947 * vdo_is_valid_recovery_journal_sector() - Determine whether the header of the given sector could
948 * describe a valid sector for the given journal block
951 * @sector: The packed sector to check.
952 * @sector_number: The number of the sector being checked.
954 * Return: true if the sector matches the block header.
958 const struct packed_journal_sector *sector,
961 if ((header->check_byte != sector->check_byte) ||
962 (header->recovery_count != sector->recovery_count))
966 return sector->entry_count <= RECOVERY_JOURNAL_ENTRIES_PER_SECTOR;
969 return sector->entry_count <= RECOVERY_JOURNAL_1_ENTRIES_IN_LAST_SECTOR;
971 return sector->entry_count <= RECOVERY_JOURNAL_1_ENTRIES_PER_SECTOR;
995 * vdo_get_journal_block_sector() - Find the recovery journal sector from the block header and
996 * sector number.
998 * @sector_number: The index of the sector (1-based).
1000 * Return: A packed recovery journal sector.