summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/dir.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-06-15 05:53:23 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-29 12:57:16 +0400
commit338b2f57499f37c18887182b48a499efb8a6b68f (patch)
tree08dfffef3694e07b02bf6ae03c5862e69b827dbb /fs/ncpfs/dir.c
parent5faf153ebf6128f02ad6ffa2e8bbc9d823ef762c (diff)
downloadop-kernel-dev-338b2f57499f37c18887182b48a499efb8a6b68f.zip
op-kernel-dev-338b2f57499f37c18887182b48a499efb8a6b68f.tar.gz
ncpfs: don't bother with EBUSY on removal of busy directories
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ncpfs/dir.c')
-rw-r--r--fs/ncpfs/dir.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
index 0e7f002..e5d4885 100644
--- a/fs/ncpfs/dir.c
+++ b/fs/ncpfs/dir.c
@@ -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,
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, new_dentry);
OpenPOWER on IntegriCloud