]> Zhao Yanbai Git Server - minix.git/commit
libminixfs: add support for peeking blocks 58/3058/1
authorDavid van Moolenbroek <david@minix3.org>
Fri, 27 Mar 2015 20:00:55 +0000 (20:00 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 13 Aug 2015 13:46:50 +0000 (13:46 +0000)
commitcb9453ca6393a8de9fc7dbd468d6ebfa5bc3794a
treea0d07eae21bb202ea3458650be76f85e6b49b23a
parentd75faf18d91c63ff738b133d42eedabf9901e44a
libminixfs: add support for peeking blocks

With this change, the lmfs_get_block*(3) functions allow the caller to
specify that it only wants the block if it is in the cache or the
secondary VM cache.  If the block is not found there, the functions
return NULL.  Previously, the PREFETCH method would be used to this
end instead, which was both abuse in name and less efficient.

Change-Id: Ieb5a15b67fa25d2008a8eeef9d126ac908fc2395
minix/fs/ext2/read.c
minix/fs/mfs/read.c
minix/include/minix/libminixfs.h
minix/lib/libminixfs/cache.c