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
60431ff6
Commit
60431ff6
authored
Jul 24, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc
parents
1abf377d
8d27a647
Changes
2
Hide 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 @
60431ff6
...
@@ -1496,14 +1496,18 @@ asmlinkage long sys_mkdir(const char * pathname, int mode)
...
@@ -1496,14 +1496,18 @@ asmlinkage long sys_mkdir(const char * pathname, int mode)
static
void
d_unhash
(
struct
dentry
*
dentry
)
static
void
d_unhash
(
struct
dentry
*
dentry
)
{
{
dget
(
dentry
);
dget
(
dentry
);
spin_lock
(
&
dcache_lock
);
switch
(
atomic_read
(
&
dentry
->
d_count
))
{
switch
(
atomic_read
(
&
dentry
->
d_count
))
{
default:
default:
spin_unlock
(
&
dcache_lock
);
shrink_dcache_parent
(
dentry
);
shrink_dcache_parent
(
dentry
);
spin_lock
(
&
dcache_lock
);
if
(
atomic_read
(
&
dentry
->
d_count
)
!=
2
)
if
(
atomic_read
(
&
dentry
->
d_count
)
!=
2
)
break
;
break
;
case
2
:
case
2
:
d_drop
(
dentry
);
list_del_init
(
&
dentry
->
d_hash
);
}
}
spin_unlock
(
&
dcache_lock
);
}
}
int
vfs_rmdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
)
int
vfs_rmdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
)
...
...
fs/nfs/dir.c
View file @
60431ff6
...
@@ -878,7 +878,7 @@ static int nfs_unlink(struct inode *dir, struct dentry *dentry)
...
@@ -878,7 +878,7 @@ static int nfs_unlink(struct inode *dir, struct dentry *dentry)
return
error
;
return
error
;
}
}
if
(
!
d_unhashed
(
dentry
))
{
if
(
!
d_unhashed
(
dentry
))
{
d_drop
(
dentry
);
list_del_init
(
&
dentry
->
d_hash
);
need_rehash
=
1
;
need_rehash
=
1
;
}
}
spin_unlock
(
&
dcache_lock
);
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