]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: resolve unsigned coercion compiler warning
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 12 Sep 2017 20:40:17 +0000 (13:40 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 14 Sep 2017 03:22:07 +0000 (20:22 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 0c2032c2876c3e2cd0d23ab883fc72375731cadf)

src/mds/SessionMap.cc
src/mds/SessionMap.h

index 3057ba577b13e497dcabda0959ed2978e85299ec..9d0bd4c87b66849adc640cd9872f2912ac0cbc77 100644 (file)
@@ -826,7 +826,7 @@ void Session::notify_cap_release(size_t n_caps)
  * in order to generate health metrics if the session doesn't see
  * a commensurate number of calls to ::notify_cap_release
  */
-void Session::notify_recall_sent(const int new_limit)
+void Session::notify_recall_sent(const size_t new_limit)
 {
   if (recalled_at.is_zero()) {
     // Entering recall phase, set up counters so we can later
index ebd4921cafb41b42702297b570acca835994b6bd..50ffde9cc04f3477dacca53705f2c890307b001c 100644 (file)
@@ -148,7 +148,7 @@ public:
   interval_set<inodeno_t> pending_prealloc_inos; // journaling prealloc, will be added to prealloc_inos
 
   void notify_cap_release(size_t n_caps);
-  void notify_recall_sent(const int new_limit);
+  void notify_recall_sent(const size_t new_limit);
   void clear_recalled_at();
 
   inodeno_t next_ino() const {