Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251317
b: refs/heads/master
c: 45e3d3e
h: refs/heads/master
i:
  251315: db0089a
v: v3
  • Loading branch information
Sage Weil committed May 24, 2011
1 parent dde9d7e commit f0b1d33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 3c454cf21645bc96668e286f6352ac2c4c895fa2
refs/heads/master: 45e3d3eeb6578e523e100622266945ecd71723bb
8 changes: 6 additions & 2 deletions trunk/fs/ceph/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ static struct dentry *__fh_to_dentry(struct super_block *sb,
req->r_ino1 = vino;
req->r_num_caps = 1;
err = ceph_mdsc_do_request(mdsc, NULL, req);
inode = req->r_target_inode;
if (inode)
igrab(inode);
ceph_mdsc_put_request(req);
inode = ceph_find_inode(sb, vino);
if (!inode)
return ERR_PTR(-ESTALE);
}
Expand Down Expand Up @@ -163,8 +165,10 @@ static struct dentry *__cfh_to_dentry(struct super_block *sb,
snprintf(req->r_path2, 16, "%d", cfh->parent_name_hash);
req->r_num_caps = 1;
err = ceph_mdsc_do_request(mdsc, NULL, req);
inode = req->r_target_inode;
if (inode)
igrab(inode);
ceph_mdsc_put_request(req);
inode = ceph_find_inode(sb, vino);
if (!inode)
return ERR_PTR(err ? err : -ESTALE);
}
Expand Down

0 comments on commit f0b1d33

Please sign in to comment.