Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
afa29791
Commit
afa29791
authored
Jul 14, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark the dentry referenced at dput time.
parent
f70158b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/dcache.c
fs/dcache.c
+1
-1
No files found.
fs/dcache.c
View file @
afa29791
...
@@ -137,6 +137,7 @@ void dput(struct dentry *dentry)
...
@@ -137,6 +137,7 @@ void dput(struct dentry *dentry)
goto
kill_it
;
goto
kill_it
;
list_add
(
&
dentry
->
d_lru
,
&
dentry_unused
);
list_add
(
&
dentry
->
d_lru
,
&
dentry_unused
);
dentry_stat
.
nr_unused
++
;
dentry_stat
.
nr_unused
++
;
dentry
->
d_vfs_flags
|=
DCACHE_REFERENCED
;
spin_unlock
(
&
dcache_lock
);
spin_unlock
(
&
dcache_lock
);
return
;
return
;
...
@@ -883,7 +884,6 @@ struct dentry * __d_lookup(struct dentry * parent, struct qstr * name)
...
@@ -883,7 +884,6 @@ struct dentry * __d_lookup(struct dentry * parent, struct qstr * name)
if
(
memcmp
(
dentry
->
d_name
.
name
,
str
,
len
))
if
(
memcmp
(
dentry
->
d_name
.
name
,
str
,
len
))
continue
;
continue
;
}
}
dentry
->
d_vfs_flags
|=
DCACHE_REFERENCED
;
return
dentry
;
return
dentry
;
}
}
return
NULL
;
return
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment