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
338b2f57
Commit
338b2f57
authored
Jun 15, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncpfs: don't bother with EBUSY on removal of busy directories
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
5faf153e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
fs/ncpfs/dir.c
fs/ncpfs/dir.c
+0
-11
fs/ncpfs/inode.c
fs/ncpfs/inode.c
+4
-0
No files found.
fs/ncpfs/dir.c
View file @
338b2f57
...
@@ -1123,17 +1123,6 @@ static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry,
...
@@ -1123,17 +1123,6 @@ static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry,
old_dentry
->
d_parent
->
d_name
.
name
,
old_dentry
->
d_name
.
name
,
old_dentry
->
d_parent
->
d_name
.
name
,
old_dentry
->
d_name
.
name
,
new_dentry
->
d_parent
->
d_name
.
name
,
new_dentry
->
d_name
.
name
);
new_dentry
->
d_parent
->
d_name
.
name
,
new_dentry
->
d_name
.
name
);
if
(
new_dentry
->
d_inode
&&
S_ISDIR
(
new_dentry
->
d_inode
->
i_mode
))
{
/*
* fail with EBUSY if there are still references to this
* directory.
*/
dentry_unhash
(
new_dentry
);
error
=
-
EBUSY
;
if
(
!
d_unhashed
(
new_dentry
))
goto
out
;
}
ncp_age_dentry
(
server
,
old_dentry
);
ncp_age_dentry
(
server
,
old_dentry
);
ncp_age_dentry
(
server
,
new_dentry
);
ncp_age_dentry
(
server
,
new_dentry
);
...
...
fs/ncpfs/inode.c
View file @
338b2f57
...
@@ -891,6 +891,10 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
...
@@ -891,6 +891,10 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
if
(
!
server
)
/* How this could happen? */
if
(
!
server
)
/* How this could happen? */
goto
out
;
goto
out
;
result
=
-
EPERM
;
if
(
IS_DEADDIR
(
dentry
->
d_inode
))
goto
out
;
/* ageing the dentry to force validation */
/* ageing the dentry to force validation */
ncp_age_dentry
(
server
,
dentry
);
ncp_age_dentry
(
server
,
dentry
);
...
...
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