aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 3e6b52cb5ee8..e7cca414da03 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1230,11 +1230,11 @@ retry_lookup:
1230 in = dn->d_inode; 1230 in = dn->d_inode;
1231 } else { 1231 } else {
1232 in = ceph_get_inode(parent->d_sb, vino); 1232 in = ceph_get_inode(parent->d_sb, vino);
1233 if (in == NULL) { 1233 if (IS_ERR(in)) {
1234 dout("new_inode badness\n"); 1234 dout("new_inode badness\n");
1235 d_delete(dn); 1235 d_delete(dn);
1236 dput(dn); 1236 dput(dn);
1237 err = -ENOMEM; 1237 err = PTR_ERR(in);
1238 goto out; 1238 goto out;
1239 } 1239 }
1240 dn = splice_dentry(dn, in, NULL); 1240 dn = splice_dentry(dn, in, NULL);