kernel: Drop base, length parameters from block_cache...etc methods.

They were ignored and unused; and in fact can't be made to work
properly since the block_cache always operates on exactly block-sized
buffers, and doesn't have contiguous buffers of multiple blocks
to hand out at all.

No functional change intended.
This commit is contained in:
Augustin Cavalier
2024-10-17 12:05:22 -04:00
parent 72d9beca78
commit 16ecdb595b
7 changed files with 22 additions and 52 deletions
+2 -2
View File
@@ -67,13 +67,13 @@ extern void block_cache_discard(void *cache, off_t blockNumber,
extern status_t block_cache_make_writable(void *cache, off_t blockNumber,
int32 transaction);
extern status_t block_cache_get_writable_etc(void *cache, off_t blockNumber,
off_t base, off_t length, int32 transaction, void** _block);
int32 transaction, void** _block);
extern void *block_cache_get_writable(void *cache, off_t blockNumber,
int32 transaction);
extern void *block_cache_get_empty(void *cache, off_t blockNumber,
int32 transaction);
extern status_t block_cache_get_etc(void *cache, off_t blockNumber,
off_t base, off_t length, const void** _block);
const void** _block);
extern const void *block_cache_get(void *cache, off_t blockNumber);
extern status_t block_cache_set_dirty(void *cache, off_t blockNumber,
bool isDirty, int32 transaction);