svn commit: r363087 - head/sys/compat/linux

Edward Tomasz Napierala trasz at FreeBSD.org
Fri Jul 10 21:41:10 UTC 2020


Author: trasz
Date: Fri Jul 10 21:41:09 2020
New Revision: 363087
URL: https://svnweb.freebsd.org/changeset/base/363087

Log:
  Don't emit warnings on MADV_HUGEPAGE; Firefox uses it a lot.
  
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/compat/linux/linux_mmap.c

Modified: head/sys/compat/linux/linux_mmap.c
==============================================================================
--- head/sys/compat/linux/linux_mmap.c	Fri Jul 10 19:58:26 2020	(r363086)
+++ head/sys/compat/linux/linux_mmap.c	Fri Jul 10 21:41:09 2020	(r363087)
@@ -371,7 +371,13 @@ linux_madvise_common(struct thread *td, uintptr_t addr
 		/* 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));


More information about the svn-src-head mailing list