Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
bc011703
Commit
bc011703
authored
17 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
The final curproc[cpu()] is now cp
parent
ab5c2dbb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs.c
+3
-4
3 additions, 4 deletions
fs.c
with
3 additions
and
4 deletions
fs.c
+
3
−
4
View file @
bc011703
...
...
@@ -557,11 +557,10 @@ namei(char *path, int mode, uint *ret_off,
char
**
ret_last
,
struct
inode
**
ret_ip
)
{
struct
inode
*
dp
;
struct
proc
*
p
=
curproc
[
cpu
()];
struct
proc
*
c
p
=
curproc
[
cpu
()];
char
*
name
;
int
namelen
;
uint
off
,
dev
;
uint
inum
;
uint
off
,
dev
,
inum
;
if
(
ret_off
)
*
ret_off
=
0xffffffff
;
...
...
@@ -573,7 +572,7 @@ namei(char *path, int mode, uint *ret_off,
if
(
*
path
==
'/'
)
dp
=
iget
(
rootdev
,
1
);
else
{
dp
=
iincref
(
p
->
cwd
);
dp
=
iincref
(
c
p
->
cwd
);
ilock
(
dp
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment