diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-09-15 22:00:58 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-09-15 22:00:58 +0000 |
commit | 888636655ddddb9e8ae3afb998c72fd2c99f63d5 (patch) | |
tree | a954ce9f0eabcc0633c9c6d4bf4d3335edf37833 /sys/sys/vnode.h | |
parent | 96474d2a3fa895fb9636183403fc8ca7ccf60216 (diff) | |
download | src-888636655ddddb9e8ae3afb998c72fd2c99f63d5.tar.gz src-888636655ddddb9e8ae3afb998c72fd2c99f63d5.zip |
vfs_subr.c: export io_hold_cnt and vn_read_from_obj().
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D26346
Notes
Notes:
svn path=/head/; revision=365784
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r-- | sys/sys/vnode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 7edea6c1e588..bdeb5287c1db 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -392,6 +392,7 @@ MALLOC_DECLARE(M_VNODE); #endif extern u_int ncsizefactor; +extern const u_int io_hold_cnt; /* * Convert between vnode types and inode formats (since POSIX.1 @@ -734,7 +735,8 @@ int vn_rdwr_inchunks(enum uio_rw rw, struct vnode *vp, void *base, size_t len, off_t offset, enum uio_seg segflg, int ioflg, struct ucred *active_cred, struct ucred *file_cred, size_t *aresid, struct thread *td); -int vn_rlimit_fsize(const struct vnode *vn, const struct uio *uio, +int vn_read_from_obj(struct vnode *vp, struct uio *uio); +int vn_rlimit_fsize(const struct vnode *vp, const struct uio *uio, struct thread *td); int vn_start_write(struct vnode *vp, struct mount **mpp, int flags); int vn_start_secondary_write(struct vnode *vp, struct mount **mpp, |