summaryrefslogtreecommitdiffstats
path: root/sys/fs/unionfs/union_vnops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-13 12:25:19 +0000
committerphk <phk@FreeBSD.org>2005-01-13 12:25:19 +0000
commit3760addae23efed2c59b081d8b911fffafea8c14 (patch)
tree7d6746c70417d5e77d9141b543695fea22e9859b /sys/fs/unionfs/union_vnops.c
parent1d0efb6bd215298a956b11bba7269f94b30a2b6c (diff)
downloadFreeBSD-src-3760addae23efed2c59b081d8b911fffafea8c14.zip
FreeBSD-src-3760addae23efed2c59b081d8b911fffafea8c14.tar.gz
Ditch vfs_object_create() and make the callers call VOP_CREATEVOBJECT()
directly.
Diffstat (limited to 'sys/fs/unionfs/union_vnops.c')
-rw-r--r--sys/fs/unionfs/union_vnops.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c
index 2dcfd2d..94df922 100644
--- a/sys/fs/unionfs/union_vnops.c
+++ b/sys/fs/unionfs/union_vnops.c
@@ -785,9 +785,8 @@ union_open(ap)
/*
* This is absolutely necessary or UFS will blow up.
*/
- if (error == 0 && vn_canvmio(tvp) == TRUE) {
- error = vfs_object_create(tvp, td, cred);
- }
+ if (error == 0 && vn_canvmio(tvp) == TRUE)
+ error = VOP_CREATEVOBJECT(tvp, cred, td);
/*
* Release any locks held.
OpenPOWER on IntegriCloud