kernel/vm: VMPageQueue's Count should be page_num_t.

It's the same as phys_addr_t anyway, but this clarifies things.
This commit is contained in:
Augustin Cavalier 2024-10-19 10:51:59 -04:00
parent e8dafa5f1a
commit 85d6c163f8

View File

@ -49,7 +49,7 @@ public:
inline vm_page* Previous(vm_page* page) const;
inline vm_page* Next(vm_page* page) const;
inline phys_addr_t Count() const { return fCount; }
inline page_num_t Count() const { return fCount; }
inline Iterator GetIterator() const;
@ -58,7 +58,7 @@ public:
protected:
const char* fName;
spinlock fLock;
phys_addr_t fCount;
page_num_t fCount;
PageList fPages;
};