Skip to content

Commit

Permalink
Removed the deprecated GetDuplicateEntry() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Oct 20, 2024
1 parent a9aab6f commit d8e068b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
22 changes: 10 additions & 12 deletions src/app/application/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,16 @@ void Application::PrintDebugInfo() const
return;
}

std::cout << std::format("Duplicate entries count: {0}.\n"
"Pool limit hit: {1}.\n"
"Pool total size: {2}.\n"
"Reject allocation failures: {3}.\n"
"Reject compression poor: {4}.\n"
"Reject Kmemcache failures: {5}.\n"
"Reject reclaim failures: {6}.\n"
"Reject compression failures: {7}.\n"
"Same filled pages count: {8}.\n"
"Stored pages count: {9}.\n"
"Written back pages count: {10}.",
ZSwapDebugger -> GetDuplicateEntry(),
std::cout << std::format("Pool limit hit: {0}.\n"
"Pool total size: {1}.\n"
"Reject allocation failures: {2}.\n"
"Reject compression poor: {3}.\n"
"Reject Kmemcache failures: {4}.\n"
"Reject reclaim failures: {5}.\n"
"Reject compression failures: {6}.\n"
"Same filled pages count: {7}.\n"
"Stored pages count: {8}.\n"
"Written back pages count: {9}.",
ZSwapDebugger -> GetPoolLimitHit(),
ZSwapDebugger -> GetPoolTotalSize(),
ZSwapDebugger -> GetRejectAllocFail(),
Expand Down
5 changes: 0 additions & 5 deletions src/lib/zswapdebug/zswapdebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@

#include "zswapdebug/zswapdebug.hpp"

unsigned long ZSwapDebug::GetDuplicateEntry() const
{
return ReadModuleDebugValue<unsigned long>("duplicate_entry", 0UL);
}

unsigned long ZSwapDebug::GetPoolLimitHit() const
{
return ReadModuleDebugValue<unsigned long>("pool_limit_hit", 0UL);
Expand Down
7 changes: 0 additions & 7 deletions src/lib/zswapdebug/zswapdebug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ class ZSwapDebug
*/
ZSwapDebug() = default;

/**
* Gets the number of duplicate entries.
* Deprecated. Removed in kernel 6.9.0.
* @returns Duplicate entries count.
*/
unsigned long GetDuplicateEntry() const;

/**
* Gets the pool limit hits.
* @returns Pool limit hits count.
Expand Down

0 comments on commit d8e068b

Please sign in to comment.