summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs/null_vnops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/nullfs/null_vnops.c')
-rw-r--r--sys/fs/nullfs/null_vnops.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index 4459fe1..fb20667 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -708,6 +708,15 @@ null_getwritemount(struct vop_getwritemount_args *ap)
return (0);
}
+static int
+null_vptofh(struct vop_vptofh_args *ap)
+{
+ struct vnode *lvp;
+
+ lvp = NULLVPTOLOWERVP(ap->a_vp);
+ return VOP_VPTOFH(lvp, ap->a_fhp);
+}
+
/*
* Global vfs data structures
*/
@@ -728,4 +737,5 @@ struct vop_vector null_vnodeops = {
.vop_setattr = null_setattr,
.vop_strategy = VOP_EOPNOTSUPP,
.vop_unlock = null_unlock,
+ .vop_vptofh = null_vptofh,
};
OpenPOWER on IntegriCloud