]> Zhao Yanbai Git Server - minix.git/commit
libminixfs: rework prefetch API 63/3063/2
authorDavid van Moolenbroek <david@minix3.org>
Sat, 4 Apr 2015 15:55:48 +0000 (15:55 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Fri, 14 Aug 2015 18:39:30 +0000 (18:39 +0000)
commit4472b590c74fed661146a925d8dff2ed1b04256e
tree5a83c779c5468679fd84debcde88b646886a04b5
parent6c46a77d9509a6aefda1522eee2103e194ced4b3
libminixfs: rework prefetch API

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
17 files changed:
minix/fs/ext2/misc.c
minix/fs/ext2/path.c
minix/fs/ext2/read.c
minix/fs/mfs/cache.c
minix/fs/mfs/clean.h
minix/fs/mfs/inode.c
minix/fs/mfs/misc.c
minix/fs/mfs/path.c
minix/fs/mfs/proto.h
minix/fs/mfs/read.c
minix/fs/mfs/stadir.c
minix/fs/mfs/super.c
minix/fs/mfs/write.c
minix/include/minix/libminixfs.h
minix/lib/libminixfs/bio.c
minix/lib/libminixfs/cache.c
minix/lib/libminixfs/inc.h