summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorBrad Hubbard <bhubbard@redhat.com>2015-08-18 04:18:53 +0200
committerIlya Dryomov <idryomov@gmail.com>2015-09-08 22:14:29 +0200
commit1550d34e5626a20a2e12c73bdc1e6e217a0ba897 (patch)
treec7b6d3815d32a4120a7bf4e81f92c53a0365f7da /fs
parentceph: fix queuing inode to mdsdir's snaprealm (diff)
downloadlinux-1550d34e5626a20a2e12c73bdc1e6e217a0ba897.tar.xz
linux-1550d34e5626a20a2e12c73bdc1e6e217a0ba897.zip
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')
-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);