]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/Locker.cc
import 12.2.13 release
[ceph.git] / ceph / src / mds / Locker.cc
index b2b4c21dc45cd936c539cf5c0cb099122e70e6f1..b2728189847c0e8078e51734bab016440e23edeb 100644 (file)
@@ -1992,7 +1992,7 @@ void Locker::issue_caps_set(set<CInode*>& inset)
     issue_caps(*p);
 }
 
-bool Locker::issue_caps(CInode *in, Capability *only_cap)
+int Locker::issue_caps(CInode *in, Capability *only_cap)
 {
   // allowed caps are determined by the lock mode.
   int all_allowed = in->get_caps_allowed_by_type(CAP_ANY);
@@ -2116,7 +2116,7 @@ bool Locker::issue_caps(CInode *in, Capability *only_cap)
       break;
   }
 
-  return (nissued == 0);  // true if no re-issued, no callbacks
+  return nissued;
 }
 
 void Locker::issue_truncate(CInode *in)