Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198058
b: refs/heads/master
c: 0d509c9
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Sage Weil committed May 17, 2010
1 parent 2279a5f commit 2f014f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions 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: c473ad927e6b3be0bac51ddf312e5d8d2b9220b0
refs/heads/master: 0d509c949a4d3f21943bd93863a2e6c2f0d0c004
12 changes: 6 additions & 6 deletions trunk/fs/ceph/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ static struct dentry *__fh_to_dentry(struct super_block *sb,
return ERR_PTR(-ESTALE);

dentry = d_obtain_alias(inode);
if (!dentry) {
if (IS_ERR(dentry)) {
pr_err("fh_to_dentry %llx -- inode %p but ENOMEM\n",
fh->ino, inode);
iput(inode);
return ERR_PTR(-ENOMEM);
return dentry;
}
err = ceph_init_dentry(dentry);

Expand Down Expand Up @@ -149,11 +149,11 @@ static struct dentry *__cfh_to_dentry(struct super_block *sb,
}

dentry = d_obtain_alias(inode);
if (!dentry) {
if (IS_ERR(dentry)) {
pr_err("cfh_to_dentry %llx -- inode %p but ENOMEM\n",
cfh->ino, inode);
iput(inode);
return ERR_PTR(-ENOMEM);
return dentry;
}
err = ceph_init_dentry(dentry);
if (err < 0) {
Expand Down Expand Up @@ -202,11 +202,11 @@ static struct dentry *ceph_fh_to_parent(struct super_block *sb,
return ERR_PTR(-ESTALE);

dentry = d_obtain_alias(inode);
if (!dentry) {
if (IS_ERR(dentry)) {
pr_err("fh_to_parent %llx -- inode %p but ENOMEM\n",
cfh->ino, inode);
iput(inode);
return ERR_PTR(-ENOMEM);
return dentry;
}
err = ceph_init_dentry(dentry);
if (err < 0) {
Expand Down

0 comments on commit 2f014f5

Please sign in to comment.