Don't emit warnings on MADV_HUGEPAGE; Firefox uses it a lot.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2020-07-10 21:41:09 +00:00
parent 1365cd6468
commit 09c4e43d18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363087

View File

@ -371,7 +371,13 @@ linux_madvise_common(struct thread *td, uintptr_t addr, size_t len, int behav)
/* Ignored; on FreeBSD huge pages are always on. */
return (0);
case LINUX_MADV_NOHUGEPAGE:
#if 0
/*
* Don't warn - Firefox uses it a lot, and in real Linux it's
* an optional feature.
*/
linux_msg(curthread, "unsupported madvise MADV_NOHUGEPAGE");
#endif
return (EINVAL);
case LINUX_MADV_DONTDUMP:
return (kern_madvise(td, addr, len, MADV_NOCORE));