Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284446
b: refs/heads/master
c: ee6b1ba
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Jan 10, 2012
1 parent 873c72c commit 375853d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: b8cd952b51034ad9f20ca147507ee68dc641c98c
refs/heads/master: ee6b1baf67591b6d7ce1a6a07544343433d5ec9e
6 changes: 2 additions & 4 deletions trunk/fs/ceph/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ static int ceph_encode_fh(struct dentry *dentry, u32 *rawfh, int *max_len,
return -EINVAL;

spin_lock(&dentry->d_lock);
parent = dget(dentry->d_parent);
spin_unlock(&dentry->d_lock);

parent = dentry->d_parent;
if (*max_len >= connected_handle_length) {
dout("encode_fh %p connectable\n", dentry);
cfh->ino = ceph_ino(dentry->d_inode);
Expand All @@ -81,7 +79,7 @@ static int ceph_encode_fh(struct dentry *dentry, u32 *rawfh, int *max_len,
*max_len = handle_length;
type = 255;
}
dput(parent);
spin_unlock(&dentry->d_lock);
return type;
}

Expand Down

0 comments on commit 375853d

Please sign in to comment.