Home
last modified time | relevance | path

Searched refs:F2FS_BLKSIZE (Results 1 – 19 of 19) sorted by relevance

/external/f2fs-tools/lib/
Dlibf2fs_io.c174 || (dcache_buf = (char *) malloc (F2FS_BLKSIZE * n)) == NULL in dcache_alloc_all()
245 return dcache_buf + F2FS_BLKSIZE * entry; in dcache_addr()
283 if (read(fd, dcache_buf + entry * F2FS_BLKSIZE, F2FS_BLKSIZE) < 0) { in dcache_io_read()
320 blk = offset / F2FS_BLKSIZE; in dcache_update_rw()
321 addr_in_blk = offset % F2FS_BLKSIZE; in dcache_update_rw()
322 start = blk * F2FS_BLKSIZE; in dcache_update_rw()
326 (size_t)(F2FS_BLKSIZE - addr_in_blk)); in dcache_update_rw()
362 start += F2FS_BLKSIZE; in dcache_update_rw()
411 memcpy(out + (i * F2FS_BLKSIZE), in sparse_read_blk()
412 blocks[cur_block], F2FS_BLKSIZE); in sparse_read_blk()
[all …]
Dlibf2fs.c571 F2FS_BLKSIZE - offset); in f2fs_inode_chksum()
584 F2FS_BLKSIZE - chksum_ofs); in f2fs_checkpoint_chksum()
1015 c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size; in get_device_info()
1163 c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size; in get_device_info()
/external/f2fs-tools/mkfs/
Df2fs_format_utils.c124 buf = malloc(F2FS_BLKSIZE); in is_wiped_device()
129 zero_buf = calloc(1, F2FS_BLKSIZE); in is_wiped_device()
144 if (read(fd, buf, F2FS_BLKSIZE) != F2FS_BLKSIZE || in is_wiped_device()
145 memcmp(buf, zero_buf, F2FS_BLKSIZE)) { in is_wiped_device()
Df2fs_format.c249 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in f2fs_prepare_super_block()
685 cp = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
691 sum = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
697 sum_compact = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
706 F2FS_BLKSIZE - 1); in f2fs_write_check_point_pack()
707 nat_bits = calloc(F2FS_BLKSIZE, nat_bits_blocks); in f2fs_write_check_point_pack()
713 cp_payload = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
803 if (blk_size_bytes != F2FS_BLKSIZE) { in f2fs_write_check_point_pack()
805 blk_size_bytes, F2FS_BLKSIZE); in f2fs_write_check_point_pack()
1049 F2FS_BLKSIZE, cp_seg_blk + i)) { in f2fs_write_check_point_pack()
[all …]
Df2fs_format_main.c211 c.device_size &= (~((u_int64_t)(F2FS_BLKSIZE - 1))); in f2fs_parse_options()
/external/f2fs-tools/fsck/
Dcompress.c46 memset(cc->rbuf, 0, cc->cluster_size * F2FS_BLKSIZE); in reset_cc()
47 memset(cc->cbuf->cdata, 0, cc->cluster_size * F2FS_BLKSIZE in reset_cc()
48 - F2FS_BLKSIZE); in reset_cc()
55 size_t size = cc->cluster_size * F2FS_BLKSIZE; in lzo_compress_init()
76 size_t size = cc->cluster_size * F2FS_BLKSIZE; in lz4_compress_init()
89 cc->rlen - F2FS_BLKSIZE * c.compress.min_blocks, in lz4_compress()
Dmount.c819 if (F2FS_BLKSIZE != PAGE_CACHE_SIZE) { in sanity_check_raw_super()
826 if (F2FS_BLKSIZE != blocksize) { in sanity_check_raw_super()
949 char buf[F2FS_BLKSIZE]; in validate_super_block()
1441 nat_block = malloc(F2FS_BLKSIZE); in f2fs_late_init_nid_bitmap()
1473 F2FS_BLKSIZE - 1); in update_nat_bits_flags()
1492 8 + F2FS_BLKSIZE - 1); in write_nat_bits()
1499 nat_bits = calloc(F2FS_BLKSIZE, nat_bits_blocks); in write_nat_bits()
1502 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits()
1549 if (dev_write_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in write_nat_bits()
1565 8 + F2FS_BLKSIZE - 1); in check_nat_bits()
[all …]
Ddump.c232 char buf[F2FS_BLKSIZE]; in dump_data_blk()
239 memset(buf, 0, F2FS_BLKSIZE); in dump_data_blk()
247 dev_write_dump(buf, offset, F2FS_BLKSIZE); in dump_data_blk()
287 dump_data_blk(sbi, *ofs * F2FS_BLKSIZE, in dump_node_blk()
390 dump_data_blk(sbi, ofs * F2FS_BLKSIZE, le32_to_cpu( in dump_inode_blk()
Dsload.c173 de->link = calloc(F2FS_BLKSIZE, 1); in set_inode_metadata()
175 ret = readlink(de->full_path, de->link, F2FS_BLKSIZE - 1); in set_inode_metadata()
Dfsck.c891 NIDS_PER_BLOCK * NIDS_PER_BLOCK) * F2FS_BLKSIZE; in fsck_chk_inode_blk()
1083 node_blk->i.i_size = cpu_to_le64(F2FS_BLKSIZE); in fsck_chk_inode_blk()
1086 nid, (unsigned long)F2FS_BLKSIZE); in fsck_chk_inode_blk()
2216 (i + 1) * F2FS_BLKSIZE, cp_blk_no++); in fix_checkpoint()
2481 node = calloc(F2FS_BLKSIZE, 1); in fsck_get_lpf()
2584 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_dnode()
2617 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_idnode()
2647 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_didnode()
2681 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file()
2759 node = calloc(F2FS_BLKSIZE, 1); in fsck_reconnect_file()
Dsegment.c274 ASSERT(offset % F2FS_BLKSIZE == 0); /* block boundary only */ in f2fs_write_ex()
384 return f2fs_write_ex(sbi, ino, NULL, F2FS_BLKSIZE, offset, addrtag); in f2fs_write_addrtag()
Dresize.c32 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in get_new_sb()
533 F2FS_BLKSIZE - CP_BITMAP_OFFSET); in rebuild_checkpoint()
Dquotaio_v2.c195 ((filesize + F2FS_BLKSIZE - 1) >> F2FS_BLKSIZE_BITS < in v2_init_io()
Ddir.c313 if ((__u64)((block + 1) * F2FS_BLKSIZE) > in f2fs_add_link()
315 parent->i.i_size = cpu_to_le64((block + 1) * F2FS_BLKSIZE); in f2fs_add_link()
Df2fs.h391 return ((char *)ckpt + F2FS_BLKSIZE); in __bitmap_ptr()
Dmain.c1006 c.compress.cc.rlen = c.compress.cc.cluster_size * F2FS_BLKSIZE; in init_compr()
/external/f2fs-tools/tools/f2fs_io/
Df2fs_io.c746 fm->fm_start = atoi(argv[1]) * F2FS_BLKSIZE; in do_fiemap()
747 fm->fm_length = F2FS_BLKSIZE; in do_fiemap()
754 (u64)fm->fm_start / F2FS_BLKSIZE, count); in do_fiemap()
759 phy_addr = fm->fm_extents[0].fe_physical / F2FS_BLKSIZE; in do_fiemap()
764 fm->fm_start += F2FS_BLKSIZE; in do_fiemap()
Df2fs_io.h48 #define F2FS_BLKSIZE 4096 macro
/external/f2fs-tools/include/
Df2fs_fs.h672 #define F2FS_BLKSIZE 4096 /* support only 4KB block */ macro
675 #define F2FS_BLK_ALIGN(x) (((x) + F2FS_BLKSIZE - 1) / F2FS_BLKSIZE)
1133 #define SUM_JOURNAL_SIZE (F2FS_BLKSIZE - SUM_FOOTER_SIZE -\