Allow data blocks to be less than sizeof ( struct buffer_free_block ) in

size.  (The restriction on the size of free blocks remains.)
This commit is contained in:
Michael Brown
2005-06-06 11:42:14 +00:00
parent 65a731bed5
commit 33dbdda28e
2 changed files with 64 additions and 108 deletions

View File

@@ -82,7 +82,9 @@ struct buffer {
*/
struct buffer_free_block {
char tail; /**< Tail byte marker */
physaddr_t next_free; /**< Address of next free block */
char reserved[3]; /**< Padding */
physaddr_t start; /**< Address of this free block */
physaddr_t next; /**< Address of next free block */
physaddr_t end; /**< End of this block */
} __attribute__ (( packed ));