Searched refs:EROFS_BLKSIZ (Results 1 – 13 of 13) sorted by relevance
| /Linux-v6.1/fs/erofs/ |
| D | dir.c | 71 unsigned int i = ctx->pos / EROFS_BLKSIZ; in erofs_readdir() 72 unsigned int ofs = ctx->pos % EROFS_BLKSIZ; in erofs_readdir() 91 nameoff >= EROFS_BLKSIZ) { in erofs_readdir() 100 dirsize - ctx->pos + ofs, EROFS_BLKSIZ); in erofs_readdir()
|
| D | xattr.c | 99 if (it.ofs >= EROFS_BLKSIZ) { in init_inode_xattrs() 101 DBG_BUGON(it.ofs != EROFS_BLKSIZ); in init_inode_xattrs() 146 if (it->ofs < EROFS_BLKSIZ) in xattr_iter_fixup() 231 if (it->ofs >= EROFS_BLKSIZ) { in xattr_foreach() 232 DBG_BUGON(it->ofs > EROFS_BLKSIZ); in xattr_foreach() 240 slice = min_t(unsigned int, EROFS_BLKSIZ - it->ofs, in xattr_foreach() 266 if (it->ofs >= EROFS_BLKSIZ) { in xattr_foreach() 267 DBG_BUGON(it->ofs > EROFS_BLKSIZ); in xattr_foreach() 275 slice = min_t(unsigned int, EROFS_BLKSIZ - it->ofs, in xattr_foreach()
|
| D | namei.c | 111 EROFS_BLKSIZ); in find_target_block_classic() 131 dname.end = (u8 *)de + EROFS_BLKSIZ; in find_target_block_classic() 135 EROFS_BLKSIZ); in find_target_block_classic() 189 de = find_target_dirent(&qn, (u8 *)de, EROFS_BLKSIZ, ndirents); in erofs_namei()
|
| D | internal.h | 250 #define EROFS_BLKSIZ (1 << LOG_BLOCK_SIZE) macro 252 #if (EROFS_BLKSIZ % 4096 || !EROFS_BLKSIZ) 271 #define erofs_blknr(addr) ((addr) / EROFS_BLKSIZ) 272 #define erofs_blkoff(addr) ((addr) % EROFS_BLKSIZ) 273 #define blknr_to_addr(nr) ((erofs_off_t)(nr) * EROFS_BLKSIZ) 350 return DIV_ROUND_UP(inode->i_size, EROFS_BLKSIZ); in erofs_inode_datablocks()
|
| D | xattr.h | 27 xattr_id * sizeof(__u32) / EROFS_BLKSIZ; in xattrblock_addr() 36 return (xattr_id * sizeof(__u32)) % EROFS_BLKSIZ; in xattrblock_offset()
|
| D | inode.c | 61 if (*ofs + vi->inode_isize <= EROFS_BLKSIZ) { in erofs_read_inode() 65 const unsigned int gotten = EROFS_BLKSIZ - *ofs; in erofs_read_inode() 193 inode->i_blocks = roundup(inode->i_size, EROFS_BLKSIZ) >> 9; in erofs_read_inode() 217 inode->i_size >= EROFS_BLKSIZ || inode->i_size < 0) { in erofs_fill_symlink() 228 if (m_pofs + inode->i_size > EROFS_BLKSIZ) { in erofs_fill_symlink()
|
| D | super.c | 60 EROFS_BLKSIZ - EROFS_SUPER_OFFSET, GFP_KERNEL); in erofs_superblock_csum_verify() 67 crc = crc32c(~0, dsb, EROFS_BLKSIZ - EROFS_SUPER_OFFSET); in erofs_superblock_csum_verify() 150 cnt = min(EROFS_BLKSIZ - (int)erofs_blkoff(*offset), len - i); in erofs_read_metadata() 372 if (sbi->sb_size > EROFS_BLKSIZ) { in erofs_read_superblock() 739 sb->s_blocksize = EROFS_BLKSIZ; in erofs_fc_fill_super() 750 if (!sb_set_blocksize(sb, EROFS_BLKSIZ)) { in erofs_fc_fill_super() 765 BUILD_BUG_ON(EROFS_BLKSIZ != PAGE_SIZE); in erofs_fc_fill_super() 1063 buf->f_bsize = EROFS_BLKSIZ; in erofs_statfs()
|
| D | decompressor.c | 45 Z_EROFS_PCLUSTER_MAX_SIZE / EROFS_BLKSIZ) { in z_erofs_load_lz4_config() 224 EROFS_BLKSIZ - rq->pageofs_in)); in z_erofs_lz4_decompress_mem() 230 (EROFS_BLKSIZ - 1)); in z_erofs_lz4_decompress_mem()
|
| D | data.c | 89 nblocks = DIV_ROUND_UP(inode->i_size, EROFS_BLKSIZ); in erofs_map_blocks_flatmode() 106 if (erofs_blkoff(map->m_pa) + map->m_plen > EROFS_BLKSIZ) { in erofs_map_blocks_flatmode() 167 roundup(inode->i_size - map->m_la, EROFS_BLKSIZ)); in erofs_map_blocks()
|
| D | zmap.c | 119 erofs_blkoff(map.m_pa) + map.m_plen > EROFS_BLKSIZ) { in z_erofs_fill_inode_lazy() 378 const unsigned int totalidx = DIV_ROUND_UP(inode->i_size, EROFS_BLKSIZ); in compacted_load_cluster_from_disk() 716 map->m_llen >= EROFS_BLKSIZ)) { in z_erofs_do_map_blocks()
|
| D | decompressor_lzma.c | 170 EROFS_BLKSIZ - rq->pageofs_in)); in z_erofs_lzma_decompress()
|
| D | fscache.c | 336 DBG_BUGON(folio_size(folio) != EROFS_BLKSIZ); in erofs_fscache_read_folio()
|
| D | zdata.c | 669 EROFS_BLKSIZ - erofs_blkoff(pos)); in z_erofs_read_fragment()
|