4472b590c7
This patch changes the prefetch API so that file systems must now provide a set of block numbers, rather than a set of buffers. The result is a leaner and more well-defined API; linear computation of the range of blocks to prefetch; duplicates no longer interfering with the prefetch process; guaranteed inclusion of the block needed next into the prefetch range; and, limits and policy decisions better established by libminixfs now actually being moved into libminixfs. Change-Id: I7e44daf2d2d164bc5e2f1473ad717f3ff0f0a77f
11 lines
325 B
C
11 lines
325 B
C
#ifndef _LIBMINIXFS_INC_H
|
|
#define _LIBMINIXFS_INC_H
|
|
|
|
int lmfs_get_partial_block(struct buf **bpp, dev_t dev, block64_t block,
|
|
int how, size_t block_size);
|
|
void lmfs_readahead(dev_t dev, block64_t base_block, unsigned int nblocks,
|
|
size_t last_size);
|
|
unsigned int lmfs_readahead_limit(void);
|
|
|
|
#endif /* !_LIBMINIXFS_INC_H */
|