projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change free_min to free_start and free_max to free_next; cosmetic fixes.
[bertos.git]
/
fs
/
battfs.h
diff --git
a/fs/battfs.h
b/fs/battfs.h
index 6f20839135a33fadea975858a7d9b884dc8b9a36..6558877f838d9ce607db1677aab8563508b72054 100644
(file)
--- a/
fs/battfs.h
+++ b/
fs/battfs.h
@@
-196,8
+196,17
@@
typedef struct BattFsSuper
*/
pgcnt_t *page_array;
*/
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.
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.