Fix spelling of persistence

This commit is contained in:
Archit Gupta
2024-07-05 16:34:00 -07:00
parent 14d891dd3e
commit ff1e980efe
2 changed files with 5 additions and 5 deletions

View File

@@ -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;
}
@@ -435,7 +435,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,
}
pxMatchingBuffer->usNumHandles = 1;
pxMatchingBuffer->usPersistance += 1;
pxMatchingBuffer->usPersistence += 1;
break;
}
@@ -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;
}
@@ -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;

View File

@@ -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