OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a8ca1b
)
ceph: don't abuse d_delete() on failure exits
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:41:05 +0000
(21:41 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 02:20:20 +0000
(22:20 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ceph/inode.c
patch
|
blob
|
history
diff --git
a/fs/ceph/inode.c
b/fs/ceph/inode.c
index
4b5762e
..
ba95eea
100644
(file)
--- a/
fs/ceph/inode.c
+++ b/
fs/ceph/inode.c
@@
-1104,7
+1104,7
@@
int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,
pr_err("fill_trace bad get_inode "
"%llx.%llx\n", vino.ino, vino.snap);
err = PTR_ERR(in);
- d_d
elete
(dn);
+ d_d
rop
(dn);
goto done;
}
dn = splice_dentry(dn, in, &have_lease, true);
@@
-1277,7
+1277,7
@@
retry_lookup:
in = ceph_get_inode(parent->d_sb, vino);
if (IS_ERR(in)) {
dout("new_inode badness\n");
- d_d
elete
(dn);
+ d_d
rop
(dn);
dput(dn);
err = PTR_ERR(in);
goto out;