MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / LocationToBlock

Method LocationToBlock

Kernel/include/fs/ext2.h:255–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 unsigned blockCacheMemoryUsage;
254
255 inline uint32_t LocationToBlock(uint64_t l){
256 return (l >> super.logBlockSize) >> 10;
257 }
258
259 inline uint64_t BlockToLBA(uint64_t block){
260 return block * (blocksize / part->parentDisk->blocksize);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected