kernel/vm: Put name argument first in VMCache::Init.

This seems to make more logical sense.
This commit is contained in:
Augustin Cavalier
2025-01-28 17:55:27 -05:00
parent 46aa69c2f6
commit 72162cc730
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -81,8 +81,8 @@ public:
VMCache();
virtual ~VMCache();
status_t Init(uint32 cacheType, uint32 allocationFlags,
const char* name);
status_t Init(const char* name, uint32 cacheType,
uint32 allocationFlags);
virtual void Delete();
+1 -1
View File
@@ -463,7 +463,7 @@ VMAnonymousCache::Init(bool canOvercommit, int32 numPrecommittedPages,
")\n", this, canOvercommit ? "yes" : "no", numPrecommittedPages,
numGuardPages);
status_t error = VMCache::Init(CACHE_TYPE_RAM, allocationFlags, "VMAnonymousCache");
status_t error = VMCache::Init("VMAnonymousCache", CACHE_TYPE_RAM, allocationFlags);
if (error != B_OK)
return error;
@@ -45,7 +45,7 @@ VMAnonymousNoSwapCache::Init(bool canOvercommit, int32 numPrecommittedPages,
TRACE(("VMAnonymousNoSwapCache::Init(canOvercommit = %s, numGuardPages = %ld) "
"at %p\n", canOvercommit ? "yes" : "no", numGuardPages, store));
status_t error = VMCache::Init(CACHE_TYPE_RAM, allocationFlags, "VMAnonymousNoSwapCache");
status_t error = VMCache::Init("VMAnonymousNoSwapCache", CACHE_TYPE_RAM, allocationFlags);
if (error != B_OK)
return error;
+1 -1
View File
@@ -630,7 +630,7 @@ VMCache::~VMCache()
status_t
VMCache::Init(uint32 cacheType, uint32 allocationFlags, const char* name)
VMCache::Init(const char* name, uint32 cacheType, uint32 allocationFlags)
{
mutex_init(&fLock, name);
+1 -1
View File
@@ -16,7 +16,7 @@ status_t
VMDeviceCache::Init(addr_t baseAddress, uint32 allocationFlags)
{
fBaseAddress = baseAddress;
return VMCache::Init(CACHE_TYPE_DEVICE, allocationFlags, "VMDeviceCache");
return VMCache::Init("VMDeviceCache", CACHE_TYPE_DEVICE, allocationFlags);
}
+1 -1
View File
@@ -12,7 +12,7 @@
status_t
VMNullCache::Init(uint32 allocationFlags)
{
return VMCache::Init(CACHE_TYPE_NULL, allocationFlags, "VMNullCache");
return VMCache::Init("VMNullCache", CACHE_TYPE_NULL, allocationFlags);
}