Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2020 17:31:18 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364717 - stable/12/sys/compat/linux
Message-ID:  <202008241731.07OHVIhS013579@repo.freebsd.org>

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



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