aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/udf
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2005-01-24 21:51:19 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2005-01-24 21:51:19 +0000
commit625d4bc03aea24308d93b7357bad1520cdcee09b (patch)
treede9993e72275e8d7b239a022135f011d89328de4 /sys/fs/udf
parentd07a6d3f6177239bbc47a24131f87738c1dfb1c3 (diff)
downloadsrc-625d4bc03aea24308d93b7357bad1520cdcee09b.tar.gz
src-625d4bc03aea24308d93b7357bad1520cdcee09b.zip
Create a vp->v_object in VFS_FHTOVP() if we want to be exportable
with NFS. We are moving responsibility for creating the vnode_pager object into the filesystems which own the vnode, and this is one of the places we have to cover. We call vnode_create_vobject() directly because we own the vnode. If we can get the size easily, pass it as an argument to save the call to VOP_GETATTR() in vnode_create_vobject()
Notes
Notes: svn path=/head/; revision=140768
Diffstat (limited to 'sys/fs/udf')
-rw-r--r--sys/fs/udf/udf_vfsops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c
index 6a815af8cadd..d39f0cc683dc 100644
--- a/sys/fs/udf/udf_vfsops.c
+++ b/sys/fs/udf/udf_vfsops.c
@@ -705,6 +705,7 @@ udf_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp)
}
*vpp = nvp;
+ vnode_create_vobject(*vpp, 0, curthread);
return (0);
}