state: Drop cache bucket
The cache bucket sits between the storage functions and the backend
storage. We only read from the storage once, so there is no need to cache
anything. The real purpose of the cache bucket is to keep the -EUCLEAN
information when a NAND block needs to be rewritten and to keep the read
buffers as long as the backend iterates over all buckets trying to find
the one we want to use.

This can be coded easier and more obvious in the backend code, so drop
the cache bucket.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e273365 commit 97d974d028f752d033634a608c5d43f335310ed6
@Sascha Hauer Sascha Hauer authored on 23 Mar 2017
Showing 4 changed files
View
Makefile.am
View
src/barebox-state/backend_bucket_cached.c 100644 → 0
View
src/barebox-state/backend_storage.c
View
src/barebox-state/state.h