Lines Matching refs:vnode
38 static int check_target(struct Vnode *vnode) in check_target() argument
40 if (vnode->type == VNODE_TYPE_DIR) in check_target()
45 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target()
50 if (vnode->useCount > 0) in check_target()
55 if (VfsVnodePermissionCheck(vnode->parent, (WRITE_OP | EXEC_OP))) in check_target()
74 struct Vnode *vnode = NULL; in do_unlink() local
99 ret = VnodeLookup(fullpath, &vnode, 0); in do_unlink()
105 ret = check_target(vnode); in do_unlink()
112 if (vnode && vnode->vop && vnode->vop->Unlink) in do_unlink()
114 ret = vnode->vop->Unlink(vnode->parent, vnode, name); in do_unlink()
116 else if (vnode && vnode->fop && vnode->fop->unlink) in do_unlink()
118 ret = vnode->fop->unlink(vnode); in do_unlink()
133 VnodeFree(vnode); in do_unlink()