Generic wear-leveling algorithm (#16996)
* Initial import of wear-leveling algorithm. * Alignment. * Docs tweaks. * Lock/unlock. * Update quantum/wear_leveling/wear_leveling_internal.h Co-authored-by: Stefan Kerkmann <karlk90@pm.me> * More tests, fix issue with consolidation when unlocked. * More tests. * Review comments. * Add plumbing for FNV1a. * Another test checking that checksum mismatch clears the cache. * Check that the write log still gets played back. Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
This commit is contained in:
parent
0d013a21e1
commit
01ecf332ff
28 changed files with 7519 additions and 0 deletions
18
lib/fnv/longlong.h
Normal file
18
lib/fnv/longlong.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* DO NOT EDIT -- generated by the Makefile
|
||||
*/
|
||||
|
||||
#if !defined(__LONGLONG_H__)
|
||||
#define __LONGLONG_H__
|
||||
|
||||
/* do we have/want to use a long long type? */
|
||||
#define HAVE_64BIT_LONG_LONG /* yes */
|
||||
|
||||
/*
|
||||
* NO64BIT_LONG_LONG undef HAVE_64BIT_LONG_LONG
|
||||
*/
|
||||
#if defined(NO64BIT_LONG_LONG)
|
||||
#undef HAVE_64BIT_LONG_LONG
|
||||
#endif /* NO64BIT_LONG_LONG */
|
||||
|
||||
#endif /* !__LONGLONG_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue