浏览代码

ceph: remove redundant test of head->safe and silence static analysis warnings

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Brad Hubbard 10 年之前
父节点
当前提交
1550d34e56
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/ceph/mds_client.c

+ 1 - 1
fs/ceph/mds_client.c

@@ -2415,7 +2415,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
 		mutex_unlock(&mdsc->mutex);
 		mutex_unlock(&mdsc->mutex);
 		goto out;
 		goto out;
 	}
 	}
-	if (req->r_got_safe && !head->safe) {
+	if (req->r_got_safe) {
 		pr_warn("got unsafe after safe on %llu from mds%d\n",
 		pr_warn("got unsafe after safe on %llu from mds%d\n",
 			   tid, mds);
 			   tid, mds);
 		mutex_unlock(&mdsc->mutex);
 		mutex_unlock(&mdsc->mutex);