]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
ceph: Remove the useless judgement.
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 18 Aug 2015 02:23:50 +0000 (10:23 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 24 Aug 2015 07:55:09 +0000 (10:55 +0300)
For ret != 0, it already handle. So skip this.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/file.c

index 8b79d87eaf4675ff91cf05c10a3fc53e70d5b313..2ebcbd4c163b8fa1c36fc321bdef93f2e22c1db4 100644 (file)
@@ -279,7 +279,7 @@ int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
        if (err)
                goto out_req;
 
-       if (err == 0 && (flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
+       if ((flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
                err = ceph_handle_notrace_create(dir, dentry);
 
        if (d_unhashed(dentry)) {