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

Method ResolveInodeBlockGroupIndex

Kernel/include/fs/ext2.h:267–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 }
266
267 inline uint32_t ResolveInodeBlockGroupIndex(uint32_t inode){
268 return (inode - 1) % super.inodesPerGroup;
269 }
270
271 inline uint64_t InodeLBA(uint32_t inode){
272 uint32_t block = blockGroups[ResolveInodeBlockGroup(inode)].inodeTable;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected