aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-19 02:51:17 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-19 02:51:17 +0000
commit7ad2a82da2b51b8c803c82a460e513f58f5a1737 (patch)
treef85ab3e67dbe25a090eeb5177a3cf89362177073 /sys/sys/vnode.h
parent4b3208a97bce21a6897d6e32536a30a9af3179b5 (diff)
downloadsrc-7ad2a82da2b51b8c803c82a460e513f58f5a1737.tar.gz
src-7ad2a82da2b51b8c803c82a460e513f58f5a1737.zip
vfs: drop the error parameter from vn_isdisk, introduce vn_isdisk_error
Most consumers pass NULL.
Notes
Notes: svn path=/head/; revision=364372
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index ef58d54d0b47..2cb951d4ffd2 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -718,7 +718,8 @@ int vn_generic_copy_file_range(struct vnode *invp, off_t *inoffp,
unsigned int flags, struct ucred *incred, struct ucred *outcred,
struct thread *fsize_td);
int vn_need_pageq_flush(struct vnode *vp);
-int vn_isdisk(struct vnode *vp, int *errp);
+bool vn_isdisk_error(struct vnode *vp, int *errp);
+bool vn_isdisk(struct vnode *vp);
int _vn_lock(struct vnode *vp, int flags, const char *file, int line);
#define vn_lock(vp, flags) _vn_lock(vp, flags, __FILE__, __LINE__)
int vn_open(struct nameidata *ndp, int *flagp, int cmode, struct file *fp);