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
This commit is contained in:
+3
-3
@@ -110,7 +110,7 @@ service mfs
|
||||
{
|
||||
ipc ALL_SYS; # All system ipc targets allowed
|
||||
system BASIC; # Only basic kernel calls allowed
|
||||
vm MAPCACHEPAGE SETCACHEPAGE;
|
||||
vm MAPCACHEPAGE SETCACHEPAGE CLEARCACHE;
|
||||
io NONE; # No I/O range allowed
|
||||
irq NONE; # No IRQ allowed
|
||||
sigmgr rs; # Signal manager is RS
|
||||
@@ -137,7 +137,7 @@ service ext2
|
||||
{
|
||||
ipc ALL_SYS; # All system ipc targets allowed
|
||||
system BASIC; # Only basic kernel calls allowed
|
||||
vm MAPCACHEPAGE SETCACHEPAGE;
|
||||
vm MAPCACHEPAGE SETCACHEPAGE CLEARCACHE;
|
||||
io NONE; # No I/O range allowed
|
||||
irq NONE; # No IRQ allowed
|
||||
sigmgr rs; # Signal manager is RS
|
||||
@@ -150,7 +150,7 @@ service pfs
|
||||
{
|
||||
ipc ALL_SYS; # All system ipc targets allowed
|
||||
system BASIC; # Only basic kernel calls allowed
|
||||
vm MAPCACHEPAGE SETCACHEPAGE;
|
||||
vm MAPCACHEPAGE SETCACHEPAGE CLEARCACHE;
|
||||
io NONE; # No I/O range allowed
|
||||
irq NONE; # No IRQ allowed
|
||||
sigmgr rs; # Signal manager is RS
|
||||
|
||||
Reference in New Issue
Block a user