From: Rishabh Dave Date: Mon, 1 Sep 2025 14:17:41 +0000 (+0530) Subject: mds: do "a != b" instead of "!(a == b)" when... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9c76e209e25c4e81e50954d662399b39f25fd682;p=ceph.git mds: do "a != b" instead of "!(a == b)" when... operator != has been overloaded for objects "a" and "b". Signed-off-by: Rishabh Dave --- diff --git a/src/include/cephfs/types.h b/src/include/cephfs/types.h index fd35e638642d..ac3da5997729 100644 --- a/src/include/cephfs/types.h +++ b/src/include/cephfs/types.h @@ -1170,9 +1170,9 @@ int inode_t::compare(const inode_t &other, bool *divergent inline_data != other.inline_data || change_attr != other.change_attr || client_ranges != other.client_ranges || - !(dirstat == other.dirstat) || - !(rstat == other.rstat) || - !(accounted_rstat == other.accounted_rstat) || + dirstat != other.dirstat || + rstat != other.rstat || + accounted_rstat != other.accounted_rstat || file_data_version != other.file_data_version || xattr_version != other.xattr_version || backtrace_version != other.backtrace_version ||