summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorBrad Hubbard <bhubbard@redhat.com>2015-08-18 05:18:53 +0300
committerIlya Dryomov <idryomov@gmail.com>2015-09-08 23:14:29 +0300
commit1550d34e5626a20a2e12c73bdc1e6e217a0ba897 (patch)
treec7b6d3815d32a4120a7bf4e81f92c53a0365f7da /fs/ceph
parent23078637e05460428f803be7d0f46908df8a970a (diff)
downloadlinux-1550d34e5626a20a2e12c73bdc1e6e217a0ba897.tar.xz
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/mds_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index ddc471c32230..d4eaa849a820 100644
--- a/fs/ceph/mds_client.c
+++ b/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);
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);