Skip to content

Commit

Permalink
mds: resolve unsigned coercion compiler warning
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 0c2032c)
  • Loading branch information
batrick committed Sep 14, 2017
1 parent e25881b commit 009d3ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mds/SessionMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/mds/SessionMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Session : public RefCountedObject {
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 {
Expand Down

0 comments on commit 009d3ab

Please sign in to comment.