mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:27:35 +00:00
Kernel: Remove unused madvise(MADV_GET_VOLATILE)
This was used to query the volatile state of a memory region, however nothing ever actually used it.
This commit is contained in:
parent
5fb91e2e84
commit
09bc4cee15
3 changed files with 0 additions and 7 deletions
|
@ -480,11 +480,6 @@ KResultOr<FlatPtr> Process::sys$madvise(Userspace<void*> address, size_t size, i
|
|||
return result.error();
|
||||
return was_purged ? 1 : 0;
|
||||
}
|
||||
if (advice & MADV_GET_VOLATILE) {
|
||||
if (!region->vmobject().is_anonymous())
|
||||
return EPERM;
|
||||
return static_cast<AnonymousVMObject&>(region->vmobject()).is_volatile() ? 0 : 1;
|
||||
}
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue