aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-03-18 10:41:07 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-04-15 09:47:56 +0000
commit437c241d0c78f77a9d9e54494a353db01ce1a3de (patch)
tree93cd995c8570ac839d646593abfa8093ba1e3377
parent42be0a7b10b14113ba9c4e4a738e8f20e235b736 (diff)
downloadsrc-437c241d0c78f77a9d9e54494a353db01ce1a3de.tar.gz
src-437c241d0c78f77a9d9e54494a353db01ce1a3de.zip
vfs_vnops.c: Make vn_statfile() non-static
Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D29323
-rw-r--r--sys/kern/vfs_vnops.c3
-rw-r--r--sys/sys/file.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 44cbf1a7893b..98f37d26ea8c 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -102,7 +102,6 @@ static fo_truncate_t vn_truncate;
static fo_ioctl_t vn_ioctl;
static fo_poll_t vn_poll;
static fo_kqfilter_t vn_kqfilter;
-static fo_stat_t vn_statfile;
static fo_close_t vn_closefile;
static fo_mmap_t vn_mmap;
static fo_fallocate_t vn_fallocate;
@@ -1616,7 +1615,7 @@ vn_truncate_locked(struct vnode *vp, off_t length, bool sync,
/*
* File table vnode stat routine.
*/
-static int
+int
vn_statfile(struct file *fp, struct stat *sb, struct ucred *active_cred,
struct thread *td)
{
diff --git a/sys/sys/file.h b/sys/sys/file.h
index c42ab09a7e03..c4fc70f517a4 100644
--- a/sys/sys/file.h
+++ b/sys/sys/file.h
@@ -262,7 +262,7 @@ fo_kqfilter_t invfo_kqfilter;
fo_chmod_t invfo_chmod;
fo_chown_t invfo_chown;
fo_sendfile_t invfo_sendfile;
-
+fo_stat_t vn_statfile;
fo_sendfile_t vn_sendfile;
fo_seek_t vn_seek;
fo_fill_kinfo_t vn_fill_kinfo;