From: Danny Al-Gaaf Date: Wed, 23 Apr 2014 16:03:52 +0000 (+0200) Subject: CDentry.cc: fix bool comparison using relational operator X-Git-Tag: v0.81~76^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ebbd9988e241358b05b0dc7c08f0f57d7083e1a;p=ceph.git CDentry.cc: fix bool comparison using relational operator Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/CDentry.cc b/src/mds/CDentry.cc index 4909e56b4f2..6686d1781b4 100644 --- a/src/mds/CDentry.cc +++ b/src/mds/CDentry.cc @@ -544,7 +544,7 @@ void CDentry::remove_client_lease(ClientLease *l, Locker *locker) void CDentry::_put() { - if (get_num_ref() <= (int)is_dirty() + 1) { + if (get_num_ref() <= ((int)is_dirty() + 1)) { CDentry::linkage_t *dnl = get_projected_linkage(); if (dnl->is_primary()) { CInode *in = dnl->get_inode();