Get pages count by given bytes.
get blocks count.
get pages count.
get blocks count.
get pages count.
189 {
194
198 size_t npage = num * size;
200 npage = std::max(npage, static_cast<size_t>(1));
201
202 return npage;
203 }
static size_t GetNBlocksLimit(size_t size)
Get count of blocks limit by tc align up bytes.
static constexpr size_t PAGE_SHIFT
8KB in a page.