From nobody Fri Dec 9 01:46:10 2022 X-Original-To: dev-commits-src-main@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 4NSv4g1Jjqz4k48X; Fri, 9 Dec 2022 01:46:11 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NSv4g0Nt8z464l; Fri, 9 Dec 2022 01:46:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670550371; 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=RsMrweaAXa+fb/r6qsTkHLwoMKeMjTpRT5W9l+niXxE=; b=YaDHN6H0pRRBzYuhEU9sKtQfFPGI+KlIDo4D7ov4vfD6lOI2STNVtUrvbBmcLbI7TLePKv x42RnMvRZGhOOFB20iX8qGVYMcCfe1afOuk9YrOBjcWs4hfjXm11hkn4QlXnoq5BUsPt/e Jfjv/sBMs325n1w966hSRMKCK7x1SdNEk4GYYZGm3h8q9xcssThdKY50prG6edEnwoEfTi ZeLufKMdgqvLtU7/WSMcdNT5EhYUVQQhMSA1VnrVROqW5jSNVJvAsBZWSE/6udaRBzqozh meJOIvjjTJgXcBD4+1ZD1NlrK7DXNh0hb1URmNz+HOTJR2F6U3vb/7s98KNmTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670550371; 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=RsMrweaAXa+fb/r6qsTkHLwoMKeMjTpRT5W9l+niXxE=; b=aLiesTfYLqQ64rZRZmkq+RvyG3cf6qkElBYH2o84PObjdVOgdpYro2z8cN2tiy5k0yeHzh noMBXmsyDvf4N5I3Z78o7+AU8rdbvA+T7calDxzThEK29ERP2i7YB3K4toJZ5BQtw183Po YVk0i/NOVQa5ItSEYt8u26DUW5DSwlPwGG4zCuLvjfCH40iV78hWfeQALEI0vuTlVRtLvV WL4H5wGRXoaKaWB+f+u0quLtZll7nY/veT1uE/8TdWgSmoM3LfJNxJ2iIhp3VGyJjXWGR0 pBEjtP484H6vrmZU5vZ0aKEcfGz4HWPY1HyU9U8g8YK3o5Bj8wzCafxjBVbV9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670550371; a=rsa-sha256; cv=none; b=gMZf5ovCbI8iXeQZ5uWEpimY49Ewdh884chlgWK2KbfuhEVmXNBvsl5FDk8WF1nHhodHOt 7n+ON7GiKzZM7JDV6Vp1ggHDMrPggN/zseMrDT2qIDvXjHFmJ+mb68zk9xg4e0D2qiHgcm 4YfLRbJGb7Zp7AYDwtXe0cYmDovo7BrGBOye+Bu/5hCns41e7WJVsN4B+r07rLFR+B5kaX 75NKBpOlq/tI2NaSg5q+zpnral9ESJhomkuwOm6ngUWE5rxZP6ZgCVku21T1lCvjzlOfOu kPnEbVOCsZqQa+Wh2nHxKAjUWsLljeiwBVQGsB1FMaHgSiS/JlHJj0WC38W8pA== 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 4NSv4f6YxnzJ4x; Fri, 9 Dec 2022 01:46:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B91kACS086462; Fri, 9 Dec 2022 01:46:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B91kAss086461; Fri, 9 Dec 2022 01:46:10 GMT (envelope-from git) Date: Fri, 9 Dec 2022 01:46:10 GMT Message-Id: <202212090146.2B91kAss086461@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ka Ho Ng Subject: git: e28932c643e8 - main - vfs: Add spare fileops function pointer slots List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: khng X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e28932c643e891294a49f386ba65322cf8410225 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=e28932c643e891294a49f386ba65322cf8410225 commit e28932c643e891294a49f386ba65322cf8410225 Author: Ka Ho Ng AuthorDate: 2022-12-09 01:45:47 +0000 Commit: Ka Ho Ng CommitDate: 2022-12-09 01:45:47 +0000 vfs: Add spare fileops function pointer slots This allows backporting of new fileops function pointers while preserving KBI. Bump __FreeBSD_version. Sponsored by: Juniper Networks, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D37636 --- sys/sys/file.h | 2 ++ sys/sys/param.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/sys/file.h b/sys/sys/file.h index 7d2a4885e415..51c1741e8343 100644 --- a/sys/sys/file.h +++ b/sys/sys/file.h @@ -132,6 +132,7 @@ typedef int fo_fallocate_t(struct file *fp, off_t offset, off_t len, typedef int fo_fspacectl_t(struct file *fp, int cmd, off_t *offset, off_t *length, int flags, struct ucred *active_cred, struct thread *td); +typedef int fo_spare_t(struct file *fp); typedef int fo_flags_t; struct fileops { @@ -154,6 +155,7 @@ struct fileops { fo_get_seals_t *fo_get_seals; fo_fallocate_t *fo_fallocate; fo_fspacectl_t *fo_fspacectl; + fo_spare_t *fo_spares[8]; /* Spare slots */ fo_flags_t fo_flags; /* DFLAG_* below */ }; diff --git a/sys/sys/param.h b/sys/sys/param.h index 1f0eac771c02..6fcf15101bcb 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -76,7 +76,7 @@ * cannot include sys/param.h and should only be updated here. */ #undef __FreeBSD_version -#define __FreeBSD_version 1400073 +#define __FreeBSD_version 1400074 /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,