]> Zhao Yanbai Git Server - minix.git/commit
VM: readd support for forgetting cached FS blocks 81/981/2
authorDavid van Moolenbroek <david@minix3.org>
Sun, 15 Sep 2013 16:55:42 +0000 (18:55 +0200)
committerLionel Sambuc <lionel@minix3.org>
Sat, 1 Mar 2014 08:04:53 +0000 (09:04 +0100)
commitb48542d914712d2b43f0681ee847e41609d00894
tree0e8d5cf1f2520f685d3569ab47c043f90517e830
parentdf724f2e1499a4ba72d92d467cda4a50e55d41b8
VM: readd support for forgetting cached FS blocks

Not all services involved in block I/O go through VM to access the
blocks they need.  As a result, the blocks in VM may become stale,
possibly causing corruption when the stale copy is restored by a
service that does go through VM later on.  This patch restores support
for forgetting cached blocks that belong to a particular device, and
makes the relevant file systems use this functionality 1) when
requested by VFS through REQ_FLUSH, and 2) upon unmount.

Change-Id: I0758c5ed8fe4b5ba81d432595d2113175776aff8
15 files changed:
commands/service/parse.c
etc/system.conf
include/minix/com.h
include/minix/vm.h
lib/libminixfs/cache.c
lib/libsys/vm_cache.c
servers/ext2/mount.c
servers/mfs/mount.c
servers/vm/cache.c
servers/vm/main.c
servers/vm/mem_cache.c
servers/vm/proto.h
test/test72.c
test/testvm.c
test/testvm.conf