Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251694
b: refs/heads/master
c: 051e8f0
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil authored and Al Viro committed May 26, 2011
1 parent d40760a commit fb5822c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51892bbb57e87854c27c105317797823f8891e68
refs/heads/master: 051e8f0ee23c9ca963e2a0208153c6cd475f05fb
6 changes: 0 additions & 6 deletions trunk/fs/ceph/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,6 @@ static int ceph_unlink(struct inode *dir, struct dentry *dentry)
int err = -EROFS;
int op;

if ((dentry->d_inode->i_mode & S_IFMT) == S_IFDIR)
dentry_unhash(dentry);

if (ceph_snap(dir) == CEPH_SNAPDIR) {
/* rmdir .snap/foo is RMSNAP */
dout("rmsnap dir %p '%.*s' dn %p\n", dir, dentry->d_name.len,
Expand Down Expand Up @@ -869,9 +866,6 @@ static int ceph_rename(struct inode *old_dir, struct dentry *old_dentry,
struct ceph_mds_request *req;
int err;

if (new_dentry->d_inode && S_ISDIR(new_dentry->d_inode->i_mode))
dentry_unhash(new_dentry);

if (ceph_snap(old_dir) != ceph_snap(new_dir))
return -EXDEV;
if (ceph_snap(old_dir) != CEPH_NOSNAP ||
Expand Down

0 comments on commit fb5822c

Please sign in to comment.