]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: remove misleading comment in get_cap_ref
authorJeff Layton <jlayton@redhat.com>
Fri, 25 Aug 2017 12:31:47 +0000 (08:31 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 25 Aug 2017 12:31:49 +0000 (08:31 -0400)
That may have been true at one time, but it's not always a single bit now.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Inode.cc

index a3d42254765ce46334960d176ab5a85060c56f85..286c5c234e4a9672b647b8a86764885b2f4d3f05 100644 (file)
@@ -142,9 +142,6 @@ void Inode::get_cap_ref(int cap)
 
 int Inode::put_cap_ref(int cap)
 {
-  // if cap is always a single bit (which it seems to be)
-  // all this logic is equivalent to:
-  // if (--cap_refs[c]) return false; else return true;
   int last = 0;
   int n = 0;
   while (cap) {