diff options
author | Ka Ho Ng <khng@FreeBSD.org> | 2022-12-09 01:45:47 +0000 |
---|---|---|
committer | Ka Ho Ng <khng@FreeBSD.org> | 2022-12-09 01:45:47 +0000 |
commit | e28932c643e891294a49f386ba65322cf8410225 (patch) | |
tree | 47a660505b1f5dcef06089e0d46cd8e3b9b14676 | |
parent | b1ef176eb52877b06541ba5019c7d2a3c78fbdc3 (diff) |
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
-rw-r--r-- | sys/sys/file.h | 2 | ||||
-rw-r--r-- | sys/sys/param.h | 2 |
2 files changed, 3 insertions, 1 deletions
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, |