From: Xiubo Li Date: Thu, 3 Jun 2021 05:25:36 +0000 (+0800) Subject: mds: fix the comment in add_inode X-Git-Tag: v16.2.7~29^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1d0f0d9a12d824cad4578468ed9f6bfb0707768b;p=ceph.git mds: fix the comment in add_inode Signed-off-by: Xiubo Li (cherry picked from commit e02c3295534bc771fee79afbab7bf32abff33cb7) --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index e9cbf7141c4c..4533cfde1baa 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -254,9 +254,9 @@ bool MDCache::shutdown() // ==================================================================== // some inode functions -void MDCache::add_inode(CInode *in) +void MDCache::add_inode(CInode *in) { - // add to lru, inode map + // add to inode map if (in->last == CEPH_NOSNAP) { auto &p = inode_map[in->ino()]; ceph_assert(!p); // should be no dup inos!