Skip to content

Commit

Permalink
ceph: remove redundant test of head->safe and silence static analysis…
Browse files Browse the repository at this point in the history
… warnings

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
  • Loading branch information
Brad Hubbard authored and Ilya Dryomov committed Sep 8, 2015
1 parent 2307863 commit 1550d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2415,7 +2415,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
mutex_unlock(&mdsc->mutex);
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",
tid, mds);
mutex_unlock(&mdsc->mutex);
Expand Down

0 comments on commit 1550d34

Please sign in to comment.