aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-07-01 17:59:40 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-07-01 17:59:40 +0000
commit6bd521df93334abcdb934c1afd2bf3c264cde025 (patch)
tree7246cde7ca751937ee5b54600c6dac369be7343e /sys/sys/vnode.h
parentb0346d3494df20221be3c55ba8718581e44df81d (diff)
downloadsrc-6bd521df93334abcdb934c1afd2bf3c264cde025.tar.gz
src-6bd521df93334abcdb934c1afd2bf3c264cde025.zip
Use indirect function pointer hooks instead of #ifdef SOFTUPDATES
direct calls for the two places where the kernel calls into soft updates code. Set up the hooks in softdep_initialize() and NULL them out in softdep_uninitialize(). This change allows soft updates to function correctly when ufs is loaded as a module. Reviewed by: mckusick
Notes
Notes: svn path=/head/; revision=99220
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 0bace92f1b9c..70331a8bf007 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -579,6 +579,8 @@ struct vattr;
struct vnode;
extern int (*lease_check_hook)(struct vop_lease_args *);
+extern int (*softdep_fsync_hook)(struct vnode *);
+extern int (*softdep_process_worklist_hook)(struct mount *);
struct vnode *addaliasu(struct vnode *vp, udev_t nvp_rdev);
int bdevvp(dev_t dev, struct vnode **vpp);