mirror of
https://github.com/FreeRTOS/Lab-Project-FreeRTOS-FAT.git
synced 2025-10-17 15:41:34 +08:00
Fix spelling of persistence
This commit is contained in:
@@ -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;
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user