svn commit: r364717 - stable/12/sys/compat/linux

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Aug 24 17:31:18 UTC 2020


Author: trasz
Date: Mon Aug 24 17:31:17 2020
New Revision: 364717
URL: https://svnweb.freebsd.org/changeset/base/364717

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

Modified:
  stable/12/sys/compat/linux/linux_mmap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linux/linux_mmap.c
==============================================================================
--- stable/12/sys/compat/linux/linux_mmap.c	Mon Aug 24 17:29:37 2020	(r364716)
+++ stable/12/sys/compat/linux/linux_mmap.c	Mon Aug 24 17:31:17 2020	(r364717)
@@ -267,7 +267,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-stable-12 mailing list