Home
last modified time | relevance | path

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

/external/erofs-utils/lib/
Dcache.c83 const int oob = cmpsgn(roundup(bb->buffers.off % EROFS_BLKSIZ, in __erofs_battach()
85 EROFS_BLKSIZ); in __erofs_battach()
114 return (alignedoffset + incr) % EROFS_BLKSIZ; in __erofs_battach()
142 used0 = (size + required_ext) % EROFS_BLKSIZ + inline_ext; in erofs_balloc()
149 used_before = cur->buffers.off % EROFS_BLKSIZ; in erofs_balloc()
164 used = (ret + required_ext) % EROFS_BLKSIZ + inline_ext; in erofs_balloc()
167 if (used > EROFS_BLKSIZ) in erofs_balloc()
191 if (used0 > EROFS_BLKSIZ) in erofs_balloc()
305 padding = EROFS_BLKSIZ - p->buffers.off % EROFS_BLKSIZ; in erofs_bflush()
306 if (padding != EROFS_BLKSIZ) in erofs_bflush()
Dio.c86 erofs_devsz = round_down(erofs_devsz, EROFS_BLKSIZ); in dev_open()
168 static const char zero[EROFS_BLKSIZ] = {0}; in dev_fillzero()
179 while (len > EROFS_BLKSIZ) { in dev_fillzero()
180 ret = dev_write(zero, offset, EROFS_BLKSIZ); in dev_fillzero()
183 len -= EROFS_BLKSIZ; in dev_fillzero()
184 offset += EROFS_BLKSIZ; in dev_fillzero()
216 length = (u64)blocks * EROFS_BLKSIZ; in dev_resize()
Dinode.c181 if (d_size % EROFS_BLKSIZ + len > EROFS_BLKSIZ) in erofs_prepare_dir_file()
182 d_size = round_up(d_size, EROFS_BLKSIZ); in erofs_prepare_dir_file()
207 dir->idata_size = d_size % EROFS_BLKSIZ; in erofs_prepare_dir_file()
238 char buf[EROFS_BLKSIZ]; in write_dirblock()
240 fill_dirblock(buf, EROFS_BLKSIZ, q, head, end); in write_dirblock()
259 if (used + len > EROFS_BLKSIZ) { in erofs_write_dir_file()
273 DBG_BUGON(used > EROFS_BLKSIZ); in erofs_write_dir_file()
274 if (used == EROFS_BLKSIZ) { in erofs_write_dir_file()
275 DBG_BUGON(dir->i_size % EROFS_BLKSIZ); in erofs_write_dir_file()
279 DBG_BUGON(used != dir->i_size % EROFS_BLKSIZ); in erofs_write_dir_file()
[all …]
Dcompress.c68 unsigned int d0 = 0, d1 = (clusterofs + count) / EROFS_BLKSIZ; in vle_write_indexes()
108 count -= EROFS_BLKSIZ - clusterofs; in vle_write_indexes()
113 } while (clusterofs + count >= EROFS_BLKSIZ); in vle_write_indexes()
134 count = min(EROFS_BLKSIZ, *len); in write_uncompressed_block()
137 memset(dst + count, 0, EROFS_BLKSIZ - count); in write_uncompressed_block()
155 static char dstbuf[EROFS_BLKSIZ * 2]; in vle_compress_one()
156 char *const dst = dstbuf + EROFS_BLKSIZ; in vle_compress_one()
161 if (len <= EROFS_BLKSIZ) { in vle_compress_one()
170 &count, dst, EROFS_BLKSIZ); in vle_compress_one()
189 ret = blk_write(dst - (EROFS_BLKSIZ - ret), in vle_compress_one()
[all …]
Ddecompress.c72 if (rq->inputsize != EROFS_BLKSIZ) in z_erofs_decompress()
75 DBG_BUGON(rq->decodedlength > EROFS_BLKSIZ); in z_erofs_decompress()
Ddata.c130 char raw[EROFS_BLKSIZ]; in z_erofs_read_data()
145 ret = dev_read(raw, map.m_pa, EROFS_BLKSIZ); in z_erofs_read_data()
Dnamei.c183 char buf[EROFS_BLKSIZ]; in erofs_namei()
194 vi.i_size - offset, EROFS_BLKSIZ); in erofs_namei()
Dsuper.c32 char data[EROFS_BLKSIZ]; in erofs_read_superblock()
Dxattr.c581 sbi.xattr_blkaddr = off / EROFS_BLKSIZ; in erofs_build_shared_xattrs_from_path()
582 off %= EROFS_BLKSIZ; in erofs_build_shared_xattrs_from_path()
Dzmap.c231 const unsigned int totalidx = DIV_ROUND_UP(vi->i_size, EROFS_BLKSIZ); in compacted_load_cluster_from_disk()
/external/erofs-utils/include/erofs/
Dinternal.h42 #define EROFS_BLKSIZ (1U << LOG_BLOCK_SIZE) macro
55 #define erofs_blknr(addr) ((addr) / EROFS_BLKSIZ)
56 #define erofs_blkoff(addr) ((addr) % EROFS_BLKSIZ)
57 #define blknr_to_addr(nr) ((erofs_off_t)(nr) * EROFS_BLKSIZ)
59 #define BLK_ROUND_UP(addr) DIV_ROUND_UP(addr, EROFS_BLKSIZ)
242 char mpage[EROFS_BLKSIZ];
Dcache.h52 return EROFS_BLKSIZ; in get_alignsize()
/external/erofs-utils/fuse/
Ddir.c57 char dblk[EROFS_BLKSIZ]; in erofsfuse_readdir()
79 maxsize = min_t(unsigned int, EROFS_BLKSIZ, in erofsfuse_readdir()
Dmain.c50 stbuf->st_blocks = roundup(vi.i_size, EROFS_BLKSIZ) >> 9; in erofsfuse_getattr()
/external/erofs-utils/mkfs/
Dmain.c304 round_up(EROFS_SUPER_END, EROFS_BLKSIZ); in erofs_mkfs_update_super_block()
341 u8 buf[EROFS_BLKSIZ]; in erofs_mkfs_superblock_csum_set()
366 crc = crc32c(~0, (u8 *)sb, EROFS_BLKSIZ - EROFS_SUPER_OFFSET); in erofs_mkfs_superblock_csum_set()