diff options
-rw-r--r-- | fs/cifs/inode.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 18546b75f384..8852470b4fbb 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -1461,8 +1461,6 @@ int cifs_rmdir(struct inode *inode, struct dentry *direntry) | |||
1461 | 1461 | ||
1462 | cFYI(1, "cifs_rmdir, inode = 0x%p", inode); | 1462 | cFYI(1, "cifs_rmdir, inode = 0x%p", inode); |
1463 | 1463 | ||
1464 | dentry_unhash(direntry); | ||
1465 | |||
1466 | xid = GetXid(); | 1464 | xid = GetXid(); |
1467 | 1465 | ||
1468 | full_path = build_path_from_dentry(direntry); | 1466 | full_path = build_path_from_dentry(direntry); |
@@ -1571,9 +1569,6 @@ int cifs_rename(struct inode *source_dir, struct dentry *source_dentry, | |||
1571 | FILE_UNIX_BASIC_INFO *info_buf_target; | 1569 | FILE_UNIX_BASIC_INFO *info_buf_target; |
1572 | int xid, rc, tmprc; | 1570 | int xid, rc, tmprc; |
1573 | 1571 | ||
1574 | if (target_dentry->d_inode && S_ISDIR(target_dentry->d_inode->i_mode)) | ||
1575 | dentry_unhash(target_dentry); | ||
1576 | |||
1577 | cifs_sb = CIFS_SB(source_dir->i_sb); | 1572 | cifs_sb = CIFS_SB(source_dir->i_sb); |
1578 | tlink = cifs_sb_tlink(cifs_sb); | 1573 | tlink = cifs_sb_tlink(cifs_sb); |
1579 | if (IS_ERR(tlink)) | 1574 | if (IS_ERR(tlink)) |