Searched refs:F2FS_BLKSIZE (Results 1 – 12 of 12) sorted by relevance
/external/f2fs-tools/lib/ |
D | libf2fs_io.c | 90 memcpy(out + (i * F2FS_BLKSIZE), in sparse_read_blk() 91 blocks[cur_block], F2FS_BLKSIZE); in sparse_read_blk() 93 memset(out + (i * F2FS_BLKSIZE), 0, F2FS_BLKSIZE); in sparse_read_blk() 107 blocks[cur_block] = calloc(1, F2FS_BLKSIZE); in sparse_write_blk() 111 memcpy(blocks[cur_block], in + (i * F2FS_BLKSIZE), in sparse_write_blk() 112 F2FS_BLKSIZE); in sparse_write_blk() 126 if (!nr_blocks || len % F2FS_BLKSIZE) in sparse_import_segment() 137 buf = calloc(num, F2FS_BLKSIZE); in sparse_merge_blocks() 140 (unsigned long long)num * F2FS_BLKSIZE); in sparse_merge_blocks() 145 memcpy(buf + i * F2FS_BLKSIZE, blocks[start + i], F2FS_BLKSIZE); in sparse_merge_blocks() [all …]
|
D | libf2fs.c | 531 F2FS_BLKSIZE - offset); in f2fs_inode_chksum() 920 c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size; in get_device_info() 1061 c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size; in get_device_info()
|
/external/f2fs-tools/mkfs/ |
D | f2fs_format.c | 223 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in f2fs_prepare_super_block() 603 cp = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack() 609 sum = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack() 615 sum_compact = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack() 624 F2FS_BLKSIZE - 1); in f2fs_write_check_point_pack() 625 nat_bits = calloc(F2FS_BLKSIZE, nat_bits_blocks); in f2fs_write_check_point_pack() 631 cp_payload = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack() 703 if (blk_size_bytes != F2FS_BLKSIZE) { in f2fs_write_check_point_pack() 705 blk_size_bytes, F2FS_BLKSIZE); in f2fs_write_check_point_pack() 931 F2FS_BLKSIZE, cp_seg_blk + i)) { in f2fs_write_check_point_pack() [all …]
|
D | f2fs_format_main.c | 177 c.device_size &= (~((u_int64_t)(F2FS_BLKSIZE - 1))); in f2fs_parse_options()
|
/external/f2fs-tools/fsck/ |
D | dump.c | 232 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() 387 dump_data_blk(sbi, ofs * F2FS_BLKSIZE, le32_to_cpu( in dump_inode_blk()
|
D | sload.c | 149 de->link = calloc(F2FS_BLKSIZE, 1); in set_inode_metadata() 151 ret = readlink(de->full_path, de->link, F2FS_BLKSIZE - 1); in set_inode_metadata()
|
D | mount.c | 622 if (F2FS_BLKSIZE != PAGE_CACHE_SIZE) in sanity_check_raw_super() 626 if (F2FS_BLKSIZE != blocksize) in sanity_check_raw_super() 664 char buf[F2FS_BLKSIZE]; in validate_super_block() 1050 nat_block = malloc(F2FS_BLKSIZE); in f2fs_init_nid_bitmap() 1106 F2FS_BLKSIZE - 1); in update_nat_bits_flags() 1125 8 + F2FS_BLKSIZE - 1); in write_nat_bits() 1132 nat_bits = calloc(F2FS_BLKSIZE, nat_bits_blocks); in write_nat_bits() 1135 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits() 1182 if (dev_write_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in write_nat_bits() 1198 8 + F2FS_BLKSIZE - 1); in check_nat_bits() [all …]
|
D | fsck.c | 997 u64 i_size = i_blocks * F2FS_BLKSIZE; in fsck_chk_inode_blk() 2070 ret = dev_write_block(((unsigned char *)cp) + i * F2FS_BLKSIZE, in fix_checkpoint() 2157 node = calloc(F2FS_BLKSIZE, 1); in fsck_get_lpf() 2260 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_dnode() 2293 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_idnode() 2323 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_didnode() 2357 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file() 2435 node = calloc(F2FS_BLKSIZE, 1); in fsck_reconnect_file()
|
D | dir.c | 309 if ((__u64)((block + 1) * F2FS_BLKSIZE) > in f2fs_add_link() 311 parent->i.i_size = cpu_to_le64((block + 1) * F2FS_BLKSIZE); in f2fs_add_link()
|
D | f2fs.h | 282 return ((char *)ckpt + F2FS_BLKSIZE); in __bitmap_ptr()
|
D | resize.c | 32 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in get_new_sb()
|
/external/f2fs-tools/include/ |
D | f2fs_fs.h | 548 #define F2FS_BLKSIZE 4096 /* support only 4KB block */ macro 550 #define F2FS_BLK_ALIGN(x) (((x) + F2FS_BLKSIZE - 1) / F2FS_BLKSIZE) 972 #define SUM_JOURNAL_SIZE (F2FS_BLKSIZE - SUM_FOOTER_SIZE -\
|