From: Patrick Donnelly Date: Tue, 12 Sep 2017 20:40:17 +0000 (-0700) Subject: mds: resolve unsigned coercion compiler warning X-Git-Tag: v13.0.1~926^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c2032c2876c3e2cd0d23ab883fc72375731cadf;p=ceph.git mds: resolve unsigned coercion compiler warning Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/SessionMap.cc b/src/mds/SessionMap.cc index 3057ba577b13e..9d0bd4c87b668 100644 --- a/src/mds/SessionMap.cc +++ b/src/mds/SessionMap.cc @@ -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 diff --git a/src/mds/SessionMap.h b/src/mds/SessionMap.h index ebd4921cafb41..50ffde9cc04f3 100644 --- a/src/mds/SessionMap.h +++ b/src/mds/SessionMap.h @@ -148,7 +148,7 @@ public: interval_set 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 {