Commit f4ff0e25c5093dd89e9cac4a8f71a57587ada787
Committed by
Al Viro
1 parent
45adfef7d0
Exists in
master
and in
39 other branches
fat: remove unnecessary dentry_unhash on rmdir, dir rename
fat does not have problems with references to unlinked directories. CC: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 2 changed files with 0 additions and 10 deletions Side-by-side Diff
fs/fat/namei_msdos.c
... | ... | @@ -326,8 +326,6 @@ |
326 | 326 | struct fat_slot_info sinfo; |
327 | 327 | int err; |
328 | 328 | |
329 | - dentry_unhash(dentry); | |
330 | - | |
331 | 329 | lock_super(sb); |
332 | 330 | /* |
333 | 331 | * Check whether the directory is not in use, then check |
... | ... | @@ -458,9 +456,6 @@ |
458 | 456 | old_sinfo.bh = sinfo.bh = dotdot_bh = NULL; |
459 | 457 | old_inode = old_dentry->d_inode; |
460 | 458 | new_inode = new_dentry->d_inode; |
461 | - | |
462 | - if (new_inode && S_ISDIR(new_inode->i_mode)) | |
463 | - dentry_unhash(new_dentry); | |
464 | 459 | |
465 | 460 | err = fat_scan(old_dir, old_name, &old_sinfo); |
466 | 461 | if (err) { |
fs/fat/namei_vfat.c
... | ... | @@ -824,8 +824,6 @@ |
824 | 824 | struct fat_slot_info sinfo; |
825 | 825 | int err; |
826 | 826 | |
827 | - dentry_unhash(dentry); | |
828 | - | |
829 | 827 | lock_super(sb); |
830 | 828 | |
831 | 829 | err = fat_dir_empty(inode); |
... | ... | @@ -932,9 +930,6 @@ |
932 | 930 | loff_t dotdot_i_pos, new_i_pos; |
933 | 931 | int err, is_dir, update_dotdot, corrupt = 0; |
934 | 932 | struct super_block *sb = old_dir->i_sb; |
935 | - | |
936 | - if (new_dentry->d_inode && S_ISDIR(new_dentry->d_inode->i_mode)) | |
937 | - dentry_unhash(new_dentry); | |
938 | 933 | |
939 | 934 | old_sinfo.bh = sinfo.bh = dotdot_bh = NULL; |
940 | 935 | old_inode = old_dentry->d_inode; |