Home
last modified time | relevance | path

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

/third_party/f2fs-tools/lib/
Dlibf2fs_io.c180 || (dcache_buf = (char *) malloc (F2FS_BLKSIZE * n)) == NULL in dcache_alloc_all()
251 return dcache_buf + F2FS_BLKSIZE * entry; in dcache_addr()
289 if (read(fd, dcache_buf + entry * F2FS_BLKSIZE, F2FS_BLKSIZE) < 0) { in dcache_io_read()
326 blk = offset / F2FS_BLKSIZE; in dcache_update_rw()
327 addr_in_blk = offset % F2FS_BLKSIZE; in dcache_update_rw()
328 start = blk * F2FS_BLKSIZE; in dcache_update_rw()
332 (size_t)(F2FS_BLKSIZE - addr_in_blk)); in dcache_update_rw()
368 start += F2FS_BLKSIZE; in dcache_update_rw()
417 memcpy(out + (i * F2FS_BLKSIZE), in sparse_read_blk()
418 blocks[cur_block], F2FS_BLKSIZE); in sparse_read_blk()
[all …]
Dlibf2fs.c578 F2FS_BLKSIZE - offset); in f2fs_inode_chksum()
591 F2FS_BLKSIZE - chksum_ofs); in f2fs_checkpoint_chksum()
1027 c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size; in get_device_info()
1183 c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size; in get_device_info()
/third_party/f2fs-tools/mkfs/
Df2fs_format_utils.c127 buf = malloc(F2FS_BLKSIZE); in is_wiped_device()
132 zero_buf = calloc(1, F2FS_BLKSIZE); in is_wiped_device()
147 if (read(fd, buf, F2FS_BLKSIZE) != F2FS_BLKSIZE || in is_wiped_device()
148 memcmp(buf, zero_buf, F2FS_BLKSIZE)) { in is_wiped_device()
Df2fs_format.c259 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in f2fs_prepare_super_block()
704 cp = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
710 sum = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
716 sum_compact = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
725 F2FS_BLKSIZE - 1); in f2fs_write_check_point_pack()
726 nat_bits = calloc(F2FS_BLKSIZE, nat_bits_blocks); in f2fs_write_check_point_pack()
732 cp_payload = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack()
822 if (blk_size_bytes != F2FS_BLKSIZE) { in f2fs_write_check_point_pack()
824 blk_size_bytes, F2FS_BLKSIZE); in f2fs_write_check_point_pack()
1069 F2FS_BLKSIZE, cp_seg_blk + i)) { in f2fs_write_check_point_pack()
[all …]
Df2fs_format_main.c260 c.device_size &= (~((uint64_t)(F2FS_BLKSIZE - 1))); in f2fs_parse_options()
460 zero_buf = calloc(F2FS_BLKSIZE, 1); in main()
/third_party/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.c815 if (F2FS_BLKSIZE != PAGE_CACHE_SIZE) { in sanity_check_raw_super()
822 if (F2FS_BLKSIZE != blocksize) { in sanity_check_raw_super()
985 char buf[F2FS_BLKSIZE]; in validate_super_block()
1514 nat_block = malloc(F2FS_BLKSIZE); in f2fs_late_init_nid_bitmap()
1546 F2FS_BLKSIZE - 1); in update_nat_bits_flags()
1565 8 + F2FS_BLKSIZE - 1); in write_nat_bits()
1572 nat_bits = calloc(F2FS_BLKSIZE, nat_bits_blocks); in write_nat_bits()
1575 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits()
1622 if (dev_write_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in write_nat_bits()
1638 8 + F2FS_BLKSIZE - 1); in check_nat_bits()
[all …]
Ddump.c252 char buf[F2FS_BLKSIZE]; in dump_data_blk()
282 memset(buf, 0, F2FS_BLKSIZE); in dump_data_blk()
291 dev_write_dump(buf, offset, F2FS_BLKSIZE); in dump_data_blk()
331 dump_data_blk(sbi, *ofs * F2FS_BLKSIZE, in dump_node_blk()
442 dump_data_blk(sbi, ofs * F2FS_BLKSIZE, le32_to_cpu( in dump_inode_blk()
Dsload.c178 de->link = calloc(F2FS_BLKSIZE, 1); in set_inode_metadata()
180 ret = readlink(de->full_path, de->link, F2FS_BLKSIZE - 1); in set_inode_metadata()
Dfsck.c936 NIDS_PER_BLOCK * NIDS_PER_BLOCK) * F2FS_BLKSIZE; in fsck_chk_inode_blk()
1149 node_blk->i.i_size = cpu_to_le64(F2FS_BLKSIZE); in fsck_chk_inode_blk()
1152 nid, (unsigned long)F2FS_BLKSIZE); in fsck_chk_inode_blk()
2366 (i + 1) * F2FS_BLKSIZE, cp_blk_no++); in fix_checkpoint()
2631 node = calloc(F2FS_BLKSIZE, 1); in fsck_get_lpf()
2734 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_dnode()
2767 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_idnode()
2797 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_didnode()
2831 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file()
2910 node = calloc(F2FS_BLKSIZE, 1); in fsck_reconnect_file()
Dresize.c32 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in get_new_sb()
533 F2FS_BLKSIZE - CP_BITMAP_OFFSET); in rebuild_checkpoint()
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()
Dquotaio_v2.c195 ((filesize + F2FS_BLKSIZE - 1) >> F2FS_BLKSIZE_BITS < in v2_init_io()
Dnode.c55 raw_node = calloc(F2FS_BLKSIZE, 1); in f2fs_rebuild_qf_inode()
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.h395 return ((char *)ckpt + F2FS_BLKSIZE); in __bitmap_ptr()
Dmain.c1038 c.compress.cc.rlen = c.compress.cc.cluster_size * F2FS_BLKSIZE; in init_compr()
/third_party/f2fs-tools/tools/f2fs_io/
Df2fs_io.h48 #define F2FS_BLKSIZE 4096 macro
Df2fs_io.c796 start = atoi(argv[1]) * F2FS_BLKSIZE; in do_fiemap()
797 length = atoi(argv[2]) * F2FS_BLKSIZE; in do_fiemap()
804 start / F2FS_BLKSIZE, length / F2FS_BLKSIZE); in do_fiemap()
/third_party/f2fs-tools/include/
Df2fs_fs.h696 #define F2FS_BLKSIZE 4096 /* support only 4KB block */ macro
699 #define F2FS_BLK_ALIGN(x) (((x) + F2FS_BLKSIZE - 1) / F2FS_BLKSIZE)
1201 #define SUM_JOURNAL_SIZE (F2FS_BLKSIZE - SUM_FOOTER_SIZE -\