X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=fs%2Fbattfs.h;fp=fs%2Fbattfs.h;h=6558877f838d9ce607db1677aab8563508b72054;hb=427cddc05729eee614b076b86651d0210ab4155b;hp=6f20839135a33fadea975858a7d9b884dc8b9a36;hpb=3fc75747c81395f9027b6b27cd03037e2a8eec08;p=bertos.git diff --git a/fs/battfs.h b/fs/battfs.h index 6f208391..6558877f 100644 --- a/fs/battfs.h +++ b/fs/battfs.h @@ -196,8 +196,17 @@ typedef struct BattFsSuper */ pgcnt_t *page_array; - mark_t free_min; ///< Lowest free page counter. - mark_t free_max; ///< Highest free page counter. + /** + * Lowest free page counter. + * This is the counter of the first availble free page. + */ + mark_t free_start; + + /** + * Highest free page counter. + * This value is the next to be used to mark a block as free. + */ + mark_t free_next; disk_size_t disk_size; ///< Size of the disk, in bytes (page_count * page_size). disk_size_t free_bytes; ///< Free space on the disk.