Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2019 17:03:07 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354402 - head/sys/dev/ksyms
Message-ID:  <201911061703.xA6H371C054419@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Nov  6 17:03:06 2019
New Revision: 354402
URL: https://svnweb.freebsd.org/changeset/base/354402

Log:
  Convert ksyms(4) to use an OBJT_PHYS object.
  
  The pages stored in the ksyms object are not pageable.  Moreover, this
  obviates the need to set OBJ_NOSPLIT.
  
  Reviewed by:	alc, kib
  MFC after:	3 days
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D22229

Modified:
  head/sys/dev/ksyms/ksyms.c

Modified: head/sys/dev/ksyms/ksyms.c
==============================================================================
--- head/sys/dev/ksyms/ksyms.c	Wed Nov  6 17:01:35 2019	(r354401)
+++ head/sys/dev/ksyms/ksyms.c	Wed Nov  6 17:03:06 2019	(r354402)
@@ -442,9 +442,8 @@ ksyms_open(struct cdev *dev, int flags, int fmt __unus
 		ksyms_size_calc(&ts);
 		elfsz = sizeof(struct ksyms_hdr) + ts.ts_symsz + ts.ts_strsz;
 
-		object = vm_object_allocate(OBJT_DEFAULT,
+		object = vm_object_allocate(OBJT_PHYS,
 		    OFF_TO_IDX(round_page(elfsz)));
-		vm_object_set_flag(object, OBJ_NOSPLIT);
 		sc->sc_obj = object;
 		sc->sc_objsz = elfsz;
 



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