Searched refs:EXT2_BLOCK_SIZE (Results 1 – 4 of 4) sorted by relevance
/lk-master/lib/fs/ext2/ |
A D | io.c | 182 uint file_block = offset / EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode() 185 if ((offset % EXT2_BLOCK_SIZE(ext2->sb)) != 0) { in ext2_read_inode() 186 uint8_t temp[EXT2_BLOCK_SIZE(ext2->sb)]; in ext2_read_inode() 191 memset(temp, 0, EXT2_BLOCK_SIZE(ext2->sb)); in ext2_read_inode() 209 while (len >= EXT2_BLOCK_SIZE(ext2->sb)) { in ext2_read_inode() 213 memset(buf, 0, EXT2_BLOCK_SIZE(ext2->sb)); in ext2_read_inode() 220 len -= EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode() 221 bytes_read += EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode() 222 buf += EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode() 227 uint8_t temp[EXT2_BLOCK_SIZE(ext2->sb)]; in ext2_read_inode() [all …]
|
A D | dir.c | 27 buf = malloc(EXT2_BLOCK_SIZE(ext2->sb)); in ext2_dir_lookup() 32 … ext2_read_inode(ext2, dir_inode, buf, file_blocknum * EXT2_BLOCK_SIZE(ext2->sb), EXT2_BLOCK_SIZE(… in ext2_dir_lookup() 41 while (pos < EXT2_BLOCK_SIZE(ext2->sb)) { in ext2_dir_lookup()
|
A D | ext2.c | 126 LTRACEF("block size %d\n", EXT2_BLOCK_SIZE(ext2->sb)); in ext2_mount() 148 (EXT2_BLOCK_SIZE(ext2->sb) == 4096) ? 4096 : 2048, in ext2_mount() 168 ext2->cache = bcache_create(ext2->dev, EXT2_BLOCK_SIZE(ext2->sb), 4); in ext2_mount() 209 *block_offset = offset % EXT2_BLOCK_SIZE(ext2->sb); in get_inode_addr() 210 *block += offset / EXT2_BLOCK_SIZE(ext2->sb); in get_inode_addr()
|
A D | ext2_fs.h | 51 #define EXT2_BLOCK_SIZE(s) ((uint32_t)EXT2_MIN_BLOCK_SIZE << (s).s_log_block_size) macro 52 #define EXT2_ADDR_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (uint32_t)) 68 #define EXT2_FRAGS_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / EXT2_FRAG_SIZE(s)) 88 #define EXT2_DESC_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_group_desc))
|
Completed in 8 milliseconds