summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-15 06:22:31 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-15 06:22:31 +0000
commitce070c7054f4f778763aa8d668f1f92ae896ed05 (patch)
tree7ab7f3ae0de51dededd5a4bc865ded5cb72182ad /sys/compat/linux
parent19713aecd94bdccec26003f193cc82be3dd363c0 (diff)
New function vn_marktext - mark a vnode as executing a text image.
Use where VTEXT was set in vnode flags before. Doesn't do anything else (yet).
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c
index b4b527827f9..c05e8e0999e 100644
--- a/sys/compat/linux/linux_exec.c
+++ b/sys/compat/linux/linux_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_exec.c,v 1.18 2001/11/06 19:53:17 miod Exp $ */
+/* $OpenBSD: linux_exec.c,v 1.19 2001/11/15 06:22:30 art Exp $ */
/* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */
/*
@@ -354,7 +354,7 @@ exec_linux_aout_prep_qmagic(p, epp)
#endif
return (ETXTBSY);
}
- epp->ep_vp->v_flag |= VTEXT;
+ vn_marktext(epp->ep_vp);
/* set up command for text segment */
NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_pagedvn, execp->a_text,
@@ -474,7 +474,7 @@ linux_sys_uselib(p, v, retval)
vrele(vp);
return (ETXTBSY);
}
- vp->v_flag |= VTEXT;
+ vn_marktext(vp);
VMCMDSET_INIT(&vcset);