Minor cleanup
- Removed the declaration of lfs_alloc_ack - Consistent brackets
This commit is contained in:
committed by
Christopher Haster
parent
5e5b5d8572
commit
f17d3d7eba
@@ -10,8 +10,6 @@
|
|||||||
#define LFS_BLOCK_NULL ((lfs_block_t)-1)
|
#define LFS_BLOCK_NULL ((lfs_block_t)-1)
|
||||||
#define LFS_BLOCK_INLINE ((lfs_block_t)-2)
|
#define LFS_BLOCK_INLINE ((lfs_block_t)-2)
|
||||||
|
|
||||||
static void lfs_alloc_ack(lfs_t *lfs);
|
|
||||||
|
|
||||||
/// Caching block device operations ///
|
/// Caching block device operations ///
|
||||||
static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) {
|
static inline void lfs_cache_drop(lfs_t *lfs, lfs_cache_t *rcache) {
|
||||||
// do not zero, cheaper if cache is readonly or only going to be
|
// do not zero, cheaper if cache is readonly or only going to be
|
||||||
@@ -443,9 +441,9 @@ static void lfs_alloc_ack(lfs_t *lfs) {
|
|||||||
lfs->free.ack = lfs->cfg->block_count;
|
lfs->free.ack = lfs->cfg->block_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Invalidate the lookahead buffer. This is done during mounting and failed traversals ///
|
// Invalidate the lookahead buffer. This is done during mounting and
|
||||||
static void lfs_alloc_reset(lfs_t *lfs)
|
// failed traversals
|
||||||
{
|
static void lfs_alloc_reset(lfs_t *lfs) {
|
||||||
lfs->free.off = lfs->seed % lfs->cfg->block_size;
|
lfs->free.off = lfs->seed % lfs->cfg->block_size;
|
||||||
lfs->free.size = 0;
|
lfs->free.size = 0;
|
||||||
lfs->free.i = 0;
|
lfs->free.i = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user