git: e28932c643e8 - main - vfs: Add spare fileops function pointer slots

From: Ka Ho Ng <khng_at_FreeBSD.org>
Date: Fri, 09 Dec 2022 01:46:10 UTC
The branch main has been updated by khng:

URL: https://cgit.FreeBSD.org/src/commit/?id=e28932c643e891294a49f386ba65322cf8410225

commit e28932c643e891294a49f386ba65322cf8410225
Author:     Ka Ho Ng <khng@FreeBSD.org>
AuthorDate: 2022-12-09 01:45:47 +0000
Commit:     Ka Ho Ng <khng@FreeBSD.org>
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,