From 0c2032c2876c3e2cd0d23ab883fc72375731cadf Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 12 Sep 2017 13:40:17 -0700 Subject: [PATCH] mds: resolve unsigned coercion compiler warning Signed-off-by: Patrick Donnelly --- src/mds/SessionMap.cc | 2 +- src/mds/SessionMap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.5