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: v13.0.1~1041^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=93f8cc1f71ffdc8dddca7efb56d82548a66ee3fe;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 --- diff --git a/src/client/Inode.cc b/src/client/Inode.cc index a3d42254765c..286c5c234e4a 100644 --- a/src/client/Inode.cc +++ b/src/client/Inode.cc @@ -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) {