diff options
author | phk <phk@FreeBSD.org> | 2005-01-13 12:25:19 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-13 12:25:19 +0000 |
commit | 3760addae23efed2c59b081d8b911fffafea8c14 (patch) | |
tree | 7d6746c70417d5e77d9141b543695fea22e9859b /sys/ufs | |
parent | 1d0efb6bd215298a956b11bba7269f94b30a2b6c (diff) | |
download | FreeBSD-src-3760addae23efed2c59b081d8b911fffafea8c14.zip FreeBSD-src-3760addae23efed2c59b081d8b911fffafea8c14.tar.gz |
Ditch vfs_object_create() and make the callers call VOP_CREATEVOBJECT()
directly.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 4 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_extattr.c | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index ef9d35a..e3fcf95 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -410,7 +410,7 @@ ffs_reload(struct mount *mp, struct thread *td) vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td); if (vinvalbuf(devvp, 0, td->td_ucred, td, 0, 0) != 0) panic("ffs_reload: dirty1"); - vfs_object_create(devvp, td, td->td_ucred); + VOP_CREATEVOBJECT(devvp, td->td_ucred, td); VOP_UNLOCK(devvp, 0, td); /* @@ -553,7 +553,7 @@ ffs_mountfs(devvp, mp, td) dev = devvp->v_rdev; cred = td ? td->td_ucred : NOCRED; - vfs_object_create(devvp, td, td->td_ucred); + VOP_CREATEVOBJECT(devvp, td->td_ucred, td); ronly = (mp->mnt_flag & MNT_RDONLY) != 0; DROP_GIANT(); g_topology_lock(); diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c index 0bc2b85..9e0b641 100644 --- a/sys/ufs/ufs/ufs_extattr.c +++ b/sys/ufs/ufs/ufs_extattr.c @@ -333,12 +333,11 @@ ufs_extattr_enable_with_open(struct ufsmount *ump, struct vnode *vp, } /* - * XXX: Note, should VOP_CLOSE() if vfs_object_create() fails, but due + * XXX: Note, should VOP_CLOSE() if VOP_CREATEVOBJECT() fails, but due * to a similar piece of code in vn_open(), we don't. */ if (vn_canvmio(vp) == TRUE) - if ((error = vfs_object_create(vp, td, - td->td_ucred)) != 0) { + if ((error = VOP_CREATEVOBJECT(vp, td->td_ucred, td)) != 0) { /* * XXX: bug replicated from vn_open(): should * VOP_CLOSE() here. |