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
nexedi
linux
Commits
5dde0bf6
Commit
5dde0bf6
authored
Jul 22, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
55bcabb2
8f681e54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
fs/namei.c
fs/namei.c
+5
-1
fs/nfs/dir.c
fs/nfs/dir.c
+1
-1
No files found.
fs/namei.c
View file @
5dde0bf6
...
...
@@ -1496,14 +1496,18 @@ asmlinkage long sys_mkdir(const char * pathname, int mode)
static
void
d_unhash
(
struct
dentry
*
dentry
)
{
dget
(
dentry
);
spin_lock
(
&
dcache_lock
);
switch
(
atomic_read
(
&
dentry
->
d_count
))
{
default:
spin_unlock
(
&
dcache_lock
);
shrink_dcache_parent
(
dentry
);
spin_lock
(
&
dcache_lock
);
if
(
atomic_read
(
&
dentry
->
d_count
)
!=
2
)
break
;
case
2
:
d_drop
(
dentry
);
list_del_init
(
&
dentry
->
d_hash
);
}
spin_unlock
(
&
dcache_lock
);
}
int
vfs_rmdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
)
...
...
fs/nfs/dir.c
View file @
5dde0bf6
...
...
@@ -878,7 +878,7 @@ static int nfs_unlink(struct inode *dir, struct dentry *dentry)
return
error
;
}
if
(
!
d_unhashed
(
dentry
))
{
d_drop
(
dentry
);
list_del_init
(
&
dentry
->
d_hash
);
need_rehash
=
1
;
}
spin_unlock
(
&
dcache_lock
);
...
...
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