Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-03-13 23:09:43 +0100
committerJan Kara <jack@suse.cz>2014-03-13 23:09:43 +0100
commit68632bc553e88d0e52b9832d110732f4905ce6be (patch)
treea86b60f6943c3ce2f4b5d9512783d3a2cfac409f
parent09881a17ac7d0b3d55edf3a82136a85fac27b401 (diff)
ncpfs: fix rmdir returns Device or resource busy (bnc#864880).rpm-3.0.101-0.18
-rw-r--r--fs/ncpfs/dir.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index 9c51f621e901..844bd64807d4 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -1033,15 +1033,6 @@ static int ncp_rmdir(struct inode *dir, struct dentry *dentry)
DPRINTK("ncp_rmdir: removing %s/%s\n",
dentry->d_parent->d_name.name, dentry->d_name.name);
- /*
- * fail with EBUSY if there are still references to this
- * directory.
- */
- dentry_unhash(dentry);
- error = -EBUSY;
- if (!d_unhashed(dentry))
- goto out;
-
len = sizeof(__name);
error = ncp_io2vol(server, __name, &len, dentry->d_name.name,
dentry->d_name.len, !ncp_preserve_case(dir));