Commit e41a59e0550b7bb40fe8c3438d690712e9fd511c
Committed by
Al Viro
1 parent
e3911785b8
Exists in
master
and in
4 other branches
hostfs: remove unnecessary dentry_unhash on rmdir, dir rename
hostfs does not have problems with references to unlinked directories. CC: Jeff Dike <jdike@addtoit.com> CC: Richard Weinberger <richard@nod.at> CC: user-mode-linux-devel@lists.sourceforge.net Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 1 changed file with 0 additions and 5 deletions Side-by-side Diff
fs/hostfs/hostfs_kern.c
... | ... | @@ -683,8 +683,6 @@ |
683 | 683 | char *file; |
684 | 684 | int err; |
685 | 685 | |
686 | - dentry_unhash(dentry); | |
687 | - | |
688 | 686 | if ((file = dentry_name(dentry)) == NULL) |
689 | 687 | return -ENOMEM; |
690 | 688 | err = do_rmdir(file); |
... | ... | @@ -737,9 +735,6 @@ |
737 | 735 | { |
738 | 736 | char *from_name, *to_name; |
739 | 737 | int err; |
740 | - | |
741 | - if (to->d_inode && S_ISDIR(to->d_inode->i_mode)) | |
742 | - dentry_unhash(to); | |
743 | 738 | |
744 | 739 | if ((from_name = dentry_name(from)) == NULL) |
745 | 740 | return -ENOMEM; |