kernel/vm: Add "unmergeable" flag to VMCache.
ramfs needs to create caches that are both temporary and unmergeable, so add another flag to make this state possible. Otherwise, mmap'ed files from ramfs might wind up in VMCache trying to merge the caches when the last one is closed, which we don't want.
This commit is contained in:
@@ -198,6 +198,7 @@ public:
|
||||
// TODO: Remove!
|
||||
uint32 page_count;
|
||||
uint32 temporary : 1;
|
||||
uint32 unmergeable : 1;
|
||||
uint32 type : 6;
|
||||
|
||||
#if DEBUG_CACHE_LIST
|
||||
|
||||
Reference in New Issue
Block a user