From: Xiubo Li Date: Thu, 3 Jun 2021 05:25:36 +0000 (+0800) Subject: mds: fix the comment in add_inode X-Git-Tag: v15.2.16~42^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fb2a7d768490a83218590cb63aa9b3e2a1471ec5;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 2667622b446..2e7cad369ba 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -257,9 +257,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!