Skip to content

Commit 1550d34

Browse files
badoneidryomov
authored andcommitted
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>
1 parent 2307863 commit 1550d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/mds_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
24152415
mutex_unlock(&mdsc->mutex);
24162416
goto out;
24172417
}
2418-
if (req->r_got_safe && !head->safe) {
2418+
if (req->r_got_safe) {
24192419
pr_warn("got unsafe after safe on %llu from mds%d\n",
24202420
tid, mds);
24212421
mutex_unlock(&mdsc->mutex);

0 commit comments

Comments
 (0)