From: Jeff Layton Date: Fri, 25 Aug 2017 12:31:47 +0000 (-0400) Subject: client: remove misleading comment in get_cap_ref X-Git-Tag: v12.2.3~94^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=12e93809aa1adbb7c3b112b4ba6b3a4374429163;p=ceph.git client: remove misleading comment in get_cap_ref That may have been true at one time, but it's not always a single bit now. Signed-off-by: Jeff Layton (cherry picked from commit 93f8cc1f71ffdc8dddca7efb56d82548a66ee3fe) --- diff --git a/src/client/Inode.cc b/src/client/Inode.cc index d9fd0336313..d29fb25d396 100644 --- a/src/client/Inode.cc +++ b/src/client/Inode.cc @@ -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) {