Skip to content

Commit

Permalink
Fix spelling of persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
archigup committed Jul 8, 2024
1 parent 14d891d commit ff1e980
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ff_ioman.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,
if( ( ucMode == FF_MODE_READ ) && ( pxMatchingBuffer->ucMode == FF_MODE_READ ) )
{
pxMatchingBuffer->usNumHandles += 1;
pxMatchingBuffer->usPersistance += 1;
pxMatchingBuffer->usPersistence += 1;
break;
}

Expand All @@ -435,7 +435,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,
}

pxMatchingBuffer->usNumHandles = 1;
pxMatchingBuffer->usPersistance += 1;
pxMatchingBuffer->usPersistence += 1;
break;
}

Expand All @@ -459,7 +459,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,

if( ( pxRLUBuffer == NULL ) ||
( pxBuffer->ulLRU > pxRLUBuffer->ulLRU ) ||
( ( pxBuffer->ulLRU == pxRLUBuffer->ulLRU ) && ( pxBuffer->usPersistance > pxRLUBuffer->usPersistance ) ) )
( ( pxBuffer->ulLRU == pxRLUBuffer->ulLRU ) && ( pxBuffer->usPersistence > pxRLUBuffer->usPersistence ) ) )
{
pxRLUBuffer = pxBuffer;
}
Expand Down Expand Up @@ -497,7 +497,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,
}

pxRLUBuffer->ucMode = ( ucMode & FF_MODE_RD_WR );
pxRLUBuffer->usPersistance = 1;
pxRLUBuffer->usPersistence = 1;
pxRLUBuffer->ulLRU = 0;
pxRLUBuffer->usNumHandles = 1;
pxRLUBuffer->ulSector = ulSector;
Expand Down
2 changes: 1 addition & 1 deletion include/ff_ioman.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
bModified : 1, /* If the sector was modified since read. */
bValid : 1; /* Initially FALSE. */
uint16_t usNumHandles; /* Number of objects using this buffer. */
uint16_t usPersistance; /* For the persistance algorithm. */
uint16_t usPersistence; /* For the persistence algorithm. */
} FF_Buffer_t;

typedef struct
Expand Down

0 comments on commit ff1e980

Please sign in to comment.