]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: do "a != b" instead of "!(a == b)" when...
authorRishabh Dave <ridave@redhat.com>
Mon, 1 Sep 2025 14:17:41 +0000 (19:47 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 2 Sep 2025 10:20:04 +0000 (15:50 +0530)
operator != has been overloaded for objects "a" and "b".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/include/cephfs/types.h

index fd35e638642dc775196a6517fa64676a5e8a3631..ac3da5997729028e43e50a515a46f63e84007562 100644 (file)
@@ -1170,9 +1170,9 @@ int inode_t<Allocator>::compare(const inode_t<Allocator> &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 ||