summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2014-08-27 17:15:30 -0400
committerRobert Morris <[email protected]>2014-08-27 17:15:30 -0400
commit71453f72f285a17ccf0520b9dbdafdc701ff2f4a (patch)
tree978d30844e643e67a807a73db20ccc5d2823f8f2 /exec.c
parent2c56547272e43b483d560a61692f1e24926a82fb (diff)
downloadxv6-labs-71453f72f285a17ccf0520b9dbdafdc701ff2f4a.tar.gz
xv6-labs-71453f72f285a17ccf0520b9dbdafdc701ff2f4a.tar.bz2
xv6-labs-71453f72f285a17ccf0520b9dbdafdc701ff2f4a.zip
a start at concurrent FS system calls
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/exec.c b/exec.c
index 7eaef5b..8dbbdb6 100644
--- a/exec.c
+++ b/exec.c
@@ -18,9 +18,9 @@ exec(char *path, char **argv)
struct proghdr ph;
pde_t *pgdir, *oldpgdir;
- begin_trans();
+ begin_op();
if((ip = namei(path)) == 0){
- commit_trans();
+ end_op();
return -1;
}
ilock(ip);
@@ -50,7 +50,7 @@ exec(char *path, char **argv)
goto bad;
}
iunlockput(ip);
- commit_trans();
+ end_op();
ip = 0;
// Allocate two pages at the next page boundary.
@@ -101,7 +101,7 @@ exec(char *path, char **argv)
freevm(pgdir);
if(ip){
iunlockput(ip);
- commit_trans();
+ end_op();
}
return -1;
}