VFS: add F_FLUSH_FS_CACHE fcntl

This fcntl requests all cached blocks associated with the minor device
number associated with the regular file are invalidated. If the file
is a block special, invalidate the blocks associated with that minor
device instead.

This is to be used for a test that tests unmapped file-mapped memory
ranges whose blocks are not in the cache and therefore must be fetched
from a FS.

Change-Id: Ide914b2e88413aa90bd731ae587ca06fa5f13ebc
This commit is contained in:
Ben Gras
2014-02-28 16:26:13 +01:00
committed by Lionel Sambuc
parent 565f13088f
commit 58b8ff5ffa
3 changed files with 20 additions and 1 deletions

View File

@@ -326,6 +326,7 @@ __END_DECLS
#if defined(__minix)
#define F_FREESP 100
#define F_FLUSH_FS_CACHE 101 /* invalidate cache on associated FS */
#endif /* defined(__minix) */
#endif /* !_SYS_FCNTL_H_ */