[PATCH ] fs/ceph: Remove the useless judgement.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For ret != 0, it already handle. So skip this.

Signed-off-by: Jianpeng Ma <jianpeng.ma@xxxxxxxxx>
---
 fs/ceph/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 5ecd3dc..17cc357 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -276,7 +276,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)) {
--
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux