madvise: Support MADV_REMOVE on tmpfs

Change-Id: Ic99d374c4d2630944c7bc838937d7f45601783c6
refs: #1371
This commit is contained in:
TOIDA,Suguru
2020-03-06 15:02:23 +09:00
parent 3300e65efc
commit c78803ac08
4 changed files with 106 additions and 0 deletions

View File

@ -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;