FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/services/ffs/core.h @ 211:847e2585a0f2
gsm-fw/services/ffs: core.c integrated
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 26 Dec 2013 07:23:38 +0000 |
parents | 6f4a12b4582f |
children |
comparison
equal
deleted
inserted
replaced
210:1d87b335fc50 | 211:847e2585a0f2 |
---|---|
114 #define RESERVED_NONE 0 | 114 #define RESERVED_NONE 0 |
115 | 115 |
116 // We have to saturate because a recently reclaimed inodes block could | 116 // We have to saturate because a recently reclaimed inodes block could |
117 // theoretically possess a high age | 117 // theoretically possess a high age |
118 #define saturate_dage(dage) (dage > (2*FFS_DAGE_MAX) ? (2*FFS_DAGE_MAX) : dage) | 118 #define saturate_dage(dage) (dage > (2*FFS_DAGE_MAX) ? (2*FFS_DAGE_MAX) : dage) |
119 | |
120 /****************************************************************************** | |
121 * External declarations | |
122 ******************************************************************************/ | |
123 | |
124 extern struct fs_s fs; | |
125 extern struct block_stat_s bstat[FFS_BLOCKS_MAX]; | |
126 | |
127 extern struct ffs_stats_s stats; | |
128 | |
129 extern const struct block_info_s *binfo; | |
130 | 119 |
131 | 120 |
132 /****************************************************************************** | 121 /****************************************************************************** |
133 * Block Types | 122 * Block Types |
134 ******************************************************************************/ | 123 ******************************************************************************/ |
200 blocksize_t used; // number of used bytes | 189 blocksize_t used; // number of used bytes |
201 blocksize_t lost; // number of lost bytes | 190 blocksize_t lost; // number of lost bytes |
202 uint16 flags; // flash block flags (first 16 bits of each block) | 191 uint16 flags; // flash block flags (first 16 bits of each block) |
203 uint16 objects; // number of valid objects | 192 uint16 objects; // number of valid objects |
204 }; | 193 }; |
194 | |
195 /****************************************************************************** | |
196 * External declarations | |
197 ******************************************************************************/ | |
198 | |
199 extern struct fs_s fs; | |
200 extern struct block_stat_s bstat[FFS_BLOCKS_MAX]; | |
201 | |
202 extern struct ffs_stats_s stats; | |
203 | |
204 extern const struct block_info_s *binfo; | |
205 | 205 |
206 | 206 |
207 /****************************************************************************** | 207 /****************************************************************************** |
208 * Object Types | 208 * Object Types |
209 ******************************************************************************/ | 209 ******************************************************************************/ |