projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79cd22d
)
ocfs2: remove spurious d_count check in ocfs2_rename()
author
Sunil Mushran
<sunil.mushran@oracle.com>
Wed, 11 Oct 2006 19:23:02 +0000
(12:23 -0700)
committer
Mark Fasheh
<mark.fasheh@oracle.com>
Fri, 20 Oct 2006 22:26:35 +0000
(15:26 -0700)
This was causing some folks to incorrectly get -EBUSY during rename.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/namei.c
b/fs/ocfs2/namei.c
index 259155f0eb2e97ce20a39b7d990ee497b59a5725..a57b751d4f40e3fad3cf7bc1df95b09816f8307c 100644
(file)
--- a/
fs/ocfs2/namei.c
+++ b/
fs/ocfs2/namei.c
@@
-1085,14
+1085,6
@@
static int ocfs2_rename(struct inode *old_dir,
BUG();
}
- if (atomic_read(&old_dentry->d_count) > 2) {
- shrink_dcache_parent(old_dentry);
- if (atomic_read(&old_dentry->d_count) > 2) {
- status = -EBUSY;
- goto bail;
- }
- }
-
/* Assume a directory heirarchy thusly:
* a/b/c
* a/d