madvise: Support MADV_REMOVE on tmpfs
Change-Id: Ic99d374c4d2630944c7bc838937d7f45601783c6 refs: #1371
This commit is contained in:
@ -974,6 +974,10 @@ static int pager_req_create(ihk_os_t os, int fd, uintptr_t result_pa)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!strcmp(inode->i_sb->s_type->name, "tmpfs")) {
|
||||
mf_flags = MF_IS_REMOVABLE;
|
||||
}
|
||||
|
||||
if (!strcmp(inode->i_sb->s_type->name, "proc")) {
|
||||
error = -ESRCH;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user