Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200840
b: refs/heads/master
c: d69ed05
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Jun 21, 2010
1 parent 00bb4d1 commit f34f697
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 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: cebc5be6b6c82a99231e9c9af451e9e3d3399ec6
refs/heads/master: d69ed05a80f23b25f06e73af9b7e701ce4900edc
19 changes: 12 additions & 7 deletions trunk/fs/ceph/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,8 @@ static struct dentry *splice_dentry(struct dentry *dn, struct inode *in,
d_drop(dn);
realdn = d_materialise_unique(dn, in);
if (IS_ERR(realdn)) {
pr_err("splice_dentry error %p inode %p ino %llx.%llx\n",
dn, in, ceph_vinop(in));
pr_err("splice_dentry error %ld %p inode %p ino %llx.%llx\n",
PTR_ERR(realdn), dn, in, ceph_vinop(in));
if (prehash)
*prehash = false; /* don't rehash on error */
dn = realdn; /* note realdn contains the error */
Expand Down Expand Up @@ -1234,18 +1234,23 @@ int ceph_readdir_prepopulate(struct ceph_mds_request *req,
goto out;
}
dn = splice_dentry(dn, in, NULL);
if (IS_ERR(dn))
dn = NULL;
}

if (fill_inode(in, &rinfo->dir_in[i], NULL, session,
req->r_request_started, -1,
&req->r_caps_reservation) < 0) {
pr_err("fill_inode badness on %p\n", in);
dput(dn);
continue;
goto next_item;
}
update_dentry_lease(dn, rinfo->dir_dlease[i],
req->r_session, req->r_request_started);
dput(dn);
if (dn)
update_dentry_lease(dn, rinfo->dir_dlease[i],
req->r_session,
req->r_request_started);
next_item:
if (dn)
dput(dn);
}
req->r_did_prepopulate = true;

Expand Down

0 comments on commit f34f697

Please sign in to comment.