From nobody Tue Oct 15 13:51:18 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XSb9L69xpz5YyNr; Tue, 15 Oct 2024 13:51:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XSb9L5kv9z4vp4; Tue, 15 Oct 2024 13:51:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729000278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QYvKP84u15ClRfG0dwRERkoX9eQ3szLu+TT2g0j86zA=; b=ZKr7I/hR/3JjtWdVEuslsuntCWd1F2KAwvFi+QZMupTcrHqzNSd60EdHF5305E2LVZiERS tn2IIMxOc3ulqnGbjXJd3xZao0KtJKLyOvHcd9ucOjHiALipCRomQ6mYD74/ttHUcURVVD Y30Bn8HqixskWb2bMHFo2XRm52KjOD5vHM5TQOSNFNSWv+R1yipKHtjficpH5kCseDAAih X7sOSjsmIHcXlo6+zHAtiBstsrizd7uHs9W4C069sx4sI8k9udqp3JkYUxPoY/lk670igB cbuOXznWA2Xb7iO1PIih4lkSmZt7OKv8Zkp/a1QgotltYiHV8pj9jLFiJiettw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729000278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QYvKP84u15ClRfG0dwRERkoX9eQ3szLu+TT2g0j86zA=; b=RVWAs4l3KmUcuWqFgn1vCTeXOU4YshN9YuHM7gxmOgRCAwrG7C9vF4SYd9kocOR3+M+fb4 G3a9HlvIT4V7Vf+kI8FrpdS2IGZqCutdO6EpfepUZHFpMjH6X7dvytJLvgUjjnwtKJvaEB /vQFzKRhKVqUrF6+NDlgEgAlQYxDLvFozgBl+KjaWfMpCkc2bMT4yDJDcFUGQXASH+wMrq SKwlCFEbk16tcm80Q2V6/KsmJUEnfNL8zFQNePtey6P17Jgd8zqBwD6i73UM8lyyPx3L3H 9IQSEA2b4/jZkA74rFGIRkDK8JCLYbL2dAR9aCyb2npM+GbPZJoa45WTbDRxNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729000278; a=rsa-sha256; cv=none; b=rIDZjoHgNcWRZU+IuhFRezGT6acL+xO7wGkNd/2PK8OmYhUdtrcZiA2fYWQmOaAvUIlmc+ nEb8ChBCIKGNl47cx584A2uzsmRAGld/3PloAygwo1U9acNfI7hnwgCGrXS860IO3jy2Je CuA21RywxhfqSlCbIgqsdOO7KP7EcU8zCOlrJcMlXv+qCqeEERvPu4YiQAbDwmKbjBmtB4 pa8MX8oHwbrFd74rck+rfn7bfkY1PE4LZYr3DPFiKDolfav4CoVcV0JHHcbHJ7W5jgvHI3 jdFVSPoRDHFJLIl8iJIMCRRXGABhwIKbp2azlv0ZM1BgBi24J/8Hs+qlBzizjg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XSb9L5L07zPVr; Tue, 15 Oct 2024 13:51:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49FDpI3e060860; Tue, 15 Oct 2024 13:51:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49FDpIj1060857; Tue, 15 Oct 2024 13:51:18 GMT (envelope-from git) Date: Tue, 15 Oct 2024 13:51:18 GMT Message-Id: <202410151351.49FDpIj1060857@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 8a5a9dbf389e - stable/14 - vm_object: Widen the flags field List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8a5a9dbf389e86d278764ababf2f1eb8ee276680 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8a5a9dbf389e86d278764ababf2f1eb8ee276680 commit 8a5a9dbf389e86d278764ababf2f1eb8ee276680 Author: Mark Johnston AuthorDate: 2024-10-06 13:07:31 +0000 Commit: Mark Johnston CommitDate: 2024-10-15 13:45:28 +0000 vm_object: Widen the flags field Take advantage of a nearby 2-byte hole to avoid growing the struct. This way, only the offsets of "flags" and "pg_color" change. Bump __FreeBSD_version since some out-of-tree kernel modules may access these fields, though I haven't found any examples so far. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35905 (cherry picked from commit 9d52823bf1dfac237e58b5208299aaa5e2df42e9) --- sys/sys/param.h | 2 +- sys/vm/vm_object.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/param.h b/sys/sys/param.h index 697a96cca916..a900131fe8ec 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -75,7 +75,7 @@ * cannot include sys/param.h and should only be updated here. */ #undef __FreeBSD_version -#define __FreeBSD_version 1401502 +#define __FreeBSD_version 1401503 /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index 3e82a5dc7430..1d00bee603f6 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -110,8 +110,8 @@ struct vm_object { int shadow_count; /* how many objects that this is a shadow for */ vm_memattr_t memattr; /* default memory attribute for pages */ objtype_t type; /* type of pager */ - u_short flags; /* see below */ u_short pg_color; /* (c) color of first page in obj */ + u_int flags; /* see below */ blockcount_t paging_in_progress; /* (a) Paging (in or out) so don't collapse or destroy */ blockcount_t busy; /* (a) object is busy, disallow page busy. */ int resident_page_count; /* number of resident pages */