]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix a typo of inode version related comment 44503/head
authorXiubo Li <xiubli@redhat.com>
Mon, 10 Jan 2022 02:44:12 +0000 (10:44 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 10 Jan 2022 02:45:18 +0000 (10:45 +0800)
The odd version means stable, or means projected. The typo of 'old'
is so confusing.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/CInode.cc

index 370fdfbd47f632563d95f74c2eab214accd72b98..afe8da83d09c5257ecc2baf0e2ade459700d767d 100644 (file)
@@ -3769,8 +3769,8 @@ int CInode::encode_inodestat(bufferlist& bl, Session *session,
             << (state_test(CInode::STATE_EXPORTINGCAPS)?", exporting caps":"")
             << dendl;
 
-  
-  // "fake" a version that is old (stable) version, +1 if projected.
+
+  // "fake" a version that is odd (stable) version, +1 if projected.
   version_t version = (oi->version * 2) + is_projected();
 
   Capability *cap = get_client_cap(client);
@@ -3782,9 +3782,9 @@ int CInode::encode_inodestat(bufferlist& bl, Session *session,
 
   bool plocal = versionlock.get_last_wrlock_client() == client;
   bool ppolicy = policylock.is_xlocked_by_client(client) || get_loner()==client;
-  
+
   const mempool_inode *any_i = (pfile|pauth|plink|pxattr|plocal) ? pi : oi;
-  
+
   dout(20) << " pfile " << pfile << " pauth " << pauth
           << " plink " << plink << " pxattr " << pxattr
           << " plocal " << plocal