projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55e5b7e
)
ncpfs: document dentry_unhash usage
author
Sage Weil
<
[email protected]
>
Fri, 27 May 2011 20:42:09 +0000
(13:42 -0700)
committer
Al Viro
<
[email protected]
>
Sat, 28 May 2011 05:02:53 +0000
(
01:02
-0400)
ncpfs returns EBUSY if there are any references to the directory. The
dentry_unhash call only unhashes the dentry if there are no references.
CC: Petr Vandrovec <
[email protected]
>
CC:
[email protected]
Signed-off-by: Sage Weil <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/ncpfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/ncpfs/dir.c
b/fs/ncpfs/dir.c
index e3e646b06404dbce84b78d6c1d9df302d0e33dc1..81c287d105d5107cd28f3b69428f2c366478a02e 100644
(file)
--- a/
fs/ncpfs/dir.c
+++ b/
fs/ncpfs/dir.c
@@
-1033,8
+1033,11
@@
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;