Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 2020 21:41:09 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363087 - head/sys/compat/linux
Message-ID:  <202007102141.06ALf9Je065580@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007102141.06ALf9Je065580>