]> Zhao Yanbai Git Server - minix.git/commit
libfsdriver: clear VM cache only if used 07/3007/1
authorDavid van Moolenbroek <david@minix3.org>
Mon, 22 Jun 2015 11:50:04 +0000 (11:50 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 23 Jun 2015 14:38:54 +0000 (14:38 +0000)
commit0a2a08739e5ee13a20ba5d874beca4958a42cb49
treedc878f0e821a41bb532885ed64aabc7e4a8c71d1
parent3f30eb69f06e23d35b1afcf262f8d5e2c83777c5
libfsdriver: clear VM cache only if used

As part of its built-in mmap emulation support for "none" file system
services, libfsdriver clears the VM cache upon exit.  However, for
trivial file systems which do not even support reading from files, the
the VM cache need to be cleared either.  With this patch, the VM cache
is cleared only when modified, so that such trivial file systems need
not be given CLEARCACHE permission.

Change-Id: I518c092443455302b9b9728f10a3f894d2c8036b
minix/lib/libfsdriver/call.c