Home
last modified time | relevance | path

Searched refs:EROFS_BLKSIZ (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/kernel/fs/erofs/
H A Dinternal.h213 #define EROFS_BLKSIZ (1 << LOG_BLOCK_SIZE) macro
215 #if (EROFS_BLKSIZ % 4096 || !EROFS_BLKSIZ)
221 #define erofs_blknr(addr) ((addr) / EROFS_BLKSIZ)
222 #define erofs_blkoff(addr) ((addr) % EROFS_BLKSIZ)
223 #define blknr_to_addr(nr) ((erofs_off_t)(nr) * EROFS_BLKSIZ)
282 return DIV_ROUND_UP(inode->i_size, EROFS_BLKSIZ); in erofs_inode_datablocks()
H A Dnamei.c110 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()
193 de = find_target_dirent(&qn, data, EROFS_BLKSIZ, ndirents); in erofs_namei()
H A Dxattr.h28 xattr_id * sizeof(__u32) / EROFS_BLKSIZ; in xattrblock_addr()
37 return (xattr_id * sizeof(__u32)) % EROFS_BLKSIZ; in xattrblock_offset()
H A Dxattr.c123 if (it.ofs >= EROFS_BLKSIZ) { in init_inode_xattrs()
125 DBG_BUGON(it.ofs != EROFS_BLKSIZ); in init_inode_xattrs()
173 if (it->ofs < EROFS_BLKSIZ) in xattr_iter_fixup()
267 if (it->ofs >= EROFS_BLKSIZ) { in xattr_foreach()
268 DBG_BUGON(it->ofs > EROFS_BLKSIZ); in xattr_foreach()
302 if (it->ofs >= EROFS_BLKSIZ) { in xattr_foreach()
303 DBG_BUGON(it->ofs > EROFS_BLKSIZ); in xattr_foreach()
H A Dsuper.c59 EROFS_BLKSIZ - EROFS_SUPER_OFFSET, GFP_KERNEL); in erofs_superblock_csum_verify()
66 crc = crc32c(~0, dsb, EROFS_BLKSIZ - EROFS_SUPER_OFFSET); in erofs_superblock_csum_verify()
162 cnt = min(EROFS_BLKSIZ - (int)erofs_blkoff(*offset), len - i); in erofs_read_metadata()
302 if (sbi->sb_size > EROFS_BLKSIZ) { in erofs_read_superblock()
534 if (!sb_set_blocksize(sb, EROFS_BLKSIZ)) { in erofs_fc_fill_super()
550 !bdev_dax_supported(sb->s_bdev, EROFS_BLKSIZ)) { in erofs_fc_fill_super()
751 buf->f_bsize = EROFS_BLKSIZ; in erofs_statfs()
H A Ddir.c73 unsigned int i = ctx->pos / EROFS_BLKSIZ; in erofs_readdir()
74 unsigned int ofs = ctx->pos % EROFS_BLKSIZ; in erofs_readdir()
H A Dinode.c184 inode->i_blocks = roundup(inode->i_size, EROFS_BLKSIZ) >> 9; in erofs_read_inode()
H A Ddecompressor.c49 Z_EROFS_PCLUSTER_MAX_SIZE / EROFS_BLKSIZ) { in z_erofs_load_lz4_config()
H A Ddata.c385 rounddown(inode->i_size, EROFS_BLKSIZ)) in erofs_prepare_dio()
H A Dzmap.c325 const unsigned int totalidx = DIV_ROUND_UP(inode->i_size, EROFS_BLKSIZ); in compacted_load_cluster_from_disk()