]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: rename count to items_count
authorXiubo Li <xiubli@redhat.com>
Tue, 22 Feb 2022 06:40:23 +0000 (14:40 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 30 May 2022 06:44:41 +0000 (14:44 +0800)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 3d9bebb0468ef01d20ae78ddfd6dbfcb8663771e)

src/mds/CDir.cc

index 8e78c1caa1f95bc4f0171c219fb33c3e0a901c3d..9983d86f3c08f1cb54b3d02a8915e9d007b88b2c 100644 (file)
@@ -2393,21 +2393,21 @@ void CDir::_omap_commit(int op_prio)
     // fnode.snap_purged_thru = realm->get_last_destroyed();
   }
 
-  size_t count = 0;
+  size_t items_count = 0;
   if (state_test(CDir::STATE_FRAGMENTING) && is_new()) {
-    count = get_num_head_items() + get_num_snap_items();
+    items_count = get_num_head_items() + get_num_snap_items();
   } else {
     for (elist<CDentry*>::iterator it = dirty_dentries.begin(); !it.end(); ++it)
-      ++count;
+      ++items_count;
   }
 
   vector<string> to_remove;
   // reverve enough memories, which maybe larger than the actually needed
-  to_remove.reserve(count);
+  to_remove.reserve(items_count);
 
   vector<dentry_commit_item> to_set;
   // reverve enough memories, which maybe larger than the actually needed
-  to_set.reserve(count);
+  to_set.reserve(items_count);
 
   // for dir fragtrees
   bufferlist dfts(CEPH_PAGE_SIZE);