Commit 051e8f0ee23c9ca963e2a0208153c6cd475f05fb
Committed by
Al Viro
1 parent
51892bbb57
Exists in
master
and in
20 other branches
ceph: remove unnecessary dentry_unhash calls
Ceph does not need these, and they screw up our use of the dcache as a consistent cache. 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 6 deletions Side-by-side Diff
fs/ceph/dir.c
... | ... | @@ -827,9 +827,6 @@ |
827 | 827 | int err = -EROFS; |
828 | 828 | int op; |
829 | 829 | |
830 | - if ((dentry->d_inode->i_mode & S_IFMT) == S_IFDIR) | |
831 | - dentry_unhash(dentry); | |
832 | - | |
833 | 830 | if (ceph_snap(dir) == CEPH_SNAPDIR) { |
834 | 831 | /* rmdir .snap/foo is RMSNAP */ |
835 | 832 | dout("rmsnap dir %p '%.*s' dn %p\n", dir, dentry->d_name.len, |
... | ... | @@ -868,9 +865,6 @@ |
868 | 865 | struct ceph_mds_client *mdsc = fsc->mdsc; |
869 | 866 | struct ceph_mds_request *req; |
870 | 867 | int err; |
871 | - | |
872 | - if (new_dentry->d_inode && S_ISDIR(new_dentry->d_inode->i_mode)) | |
873 | - dentry_unhash(new_dentry); | |
874 | 868 | |
875 | 869 | if (ceph_snap(old_dir) != ceph_snap(new_dir)) |
876 | 870 | return -EXDEV; |