]> 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)
committerNathan Cutler <ncutler@suse.com>
Sun, 28 Jan 2018 21:32:13 +0000 (22:32 +0100)
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>
(cherry picked from commit 93f8cc1f71ffdc8dddca7efb56d82548a66ee3fe)

src/client/Inode.cc

index d9fd0336313ebc59292bde6fcc8be2743dccc850..d29fb25d396a0ecbec701d001aa166abd3a94977 100644 (file)
@@ -150,9 +150,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) {