mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08:00
ocfs2: remove spurious d_count check in ocfs2_rename()
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>
This commit is contained in:
parent
79cd22d3ac
commit
711a40fcaa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user