commit | 338b2f57499f37c18887182b48a499efb8a6b68f | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Jun 15 05:53:23 2013 +0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sat Jun 29 12:57:16 2013 +0400 |
tree | 08dfffef3694e07b02bf6ae03c5862e69b827dbb | |
parent | 5faf153ebf6128f02ad6ffa2e8bbc9d823ef762c [diff] [blame] |
ncpfs: don't bother with EBUSY on removal of busy directories Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 26910c8..0765ad1 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c
@@ -891,6 +891,10 @@ if (!server) /* How this could happen? */ goto out; + result = -EPERM; + if (IS_DEADDIR(dentry->d_inode)) + goto out; + /* ageing the dentry to force validation */ ncp_age_dentry(server, dentry);