Searched refs:F2FS_BLKSIZE (Results 1 – 14 of 14) sorted by relevance
/third_party/f2fs-tools/lib/ |
D | libf2fs_io.c | 173 || (dcache_buf = (char *) malloc (F2FS_BLKSIZE * n)) == NULL in dcache_alloc_all() 244 return dcache_buf + F2FS_BLKSIZE * entry; in dcache_addr() 282 if (read(fd, dcache_buf + entry * F2FS_BLKSIZE, F2FS_BLKSIZE) < 0) { in dcache_io_read() 319 blk = offset / F2FS_BLKSIZE; in dcache_update_rw() 320 addr_in_blk = offset % F2FS_BLKSIZE; in dcache_update_rw() 321 start = blk * F2FS_BLKSIZE; in dcache_update_rw() 325 (size_t)(F2FS_BLKSIZE - addr_in_blk)); in dcache_update_rw() 361 start += F2FS_BLKSIZE; in dcache_update_rw() 410 memcpy(out + (i * F2FS_BLKSIZE), in sparse_read_blk() 411 blocks[cur_block], F2FS_BLKSIZE); in sparse_read_blk() [all …]
|
D | libf2fs.c | 573 F2FS_BLKSIZE - offset); in f2fs_inode_chksum() 586 F2FS_BLKSIZE - chksum_ofs); in f2fs_checkpoint_chksum() 1012 c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size; in get_device_info() 1160 c.sectors_per_blk = F2FS_BLKSIZE / c.sector_size; in get_device_info()
|
/third_party/f2fs-tools/mkfs/ |
D | f2fs_format_utils.c | 124 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()
|
D | f2fs_format.c | 244 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in f2fs_prepare_super_block() 640 cp = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack() 646 sum = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack() 652 sum_compact = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack() 661 F2FS_BLKSIZE - 1); in f2fs_write_check_point_pack() 662 nat_bits = calloc(F2FS_BLKSIZE, nat_bits_blocks); in f2fs_write_check_point_pack() 668 cp_payload = calloc(F2FS_BLKSIZE, 1); in f2fs_write_check_point_pack() 752 if (blk_size_bytes != F2FS_BLKSIZE) { in f2fs_write_check_point_pack() 754 blk_size_bytes, F2FS_BLKSIZE); in f2fs_write_check_point_pack() 980 F2FS_BLKSIZE, cp_seg_blk + i)) { in f2fs_write_check_point_pack() [all …]
|
D | f2fs_format_main.c | 202 c.device_size &= (~((u_int64_t)(F2FS_BLKSIZE - 1))); in f2fs_parse_options()
|
/third_party/f2fs-tools/fsck/ |
D | mount.c | 809 if (F2FS_BLKSIZE != PAGE_CACHE_SIZE) { in sanity_check_raw_super() 816 if (F2FS_BLKSIZE != blocksize) { in sanity_check_raw_super() 937 char buf[F2FS_BLKSIZE]; in validate_super_block() 1426 nat_block = malloc(F2FS_BLKSIZE); in f2fs_late_init_nid_bitmap() 1458 F2FS_BLKSIZE - 1); in update_nat_bits_flags() 1477 8 + F2FS_BLKSIZE - 1); in write_nat_bits() 1484 nat_bits = calloc(F2FS_BLKSIZE, nat_bits_blocks); in write_nat_bits() 1487 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits() 1534 if (dev_write_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in write_nat_bits() 1550 8 + F2FS_BLKSIZE - 1); in check_nat_bits() [all …]
|
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() 389 dump_data_blk(sbi, ofs * F2FS_BLKSIZE, le32_to_cpu( in dump_inode_blk()
|
D | sload.c | 166 de->link = calloc(F2FS_BLKSIZE, 1); in set_inode_metadata() 168 ret = readlink(de->full_path, de->link, F2FS_BLKSIZE - 1); in set_inode_metadata()
|
D | fsck.c | 872 NIDS_PER_BLOCK * NIDS_PER_BLOCK) * F2FS_BLKSIZE; in fsck_chk_inode_blk() 1064 node_blk->i.i_size = cpu_to_le64(F2FS_BLKSIZE); in fsck_chk_inode_blk() 1067 nid, (unsigned long)F2FS_BLKSIZE); in fsck_chk_inode_blk() 2194 (i + 1) * F2FS_BLKSIZE, cp_blk_no++); in fix_checkpoint() 2454 node = calloc(F2FS_BLKSIZE, 1); in fsck_get_lpf() 2557 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_dnode() 2590 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_idnode() 2620 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file_didnode() 2654 node = calloc(F2FS_BLKSIZE, 1); in fsck_failed_reconnect_file() 2732 node = calloc(F2FS_BLKSIZE, 1); in fsck_reconnect_file()
|
D | quotaio_v2.c | 195 ((filesize + F2FS_BLKSIZE - 1) >> F2FS_BLKSIZE_BITS < in v2_init_io()
|
D | dir.c | 312 if ((__u64)((block + 1) * F2FS_BLKSIZE) > in f2fs_add_link() 314 parent->i.i_size = cpu_to_le64((block + 1) * F2FS_BLKSIZE); in f2fs_add_link()
|
D | f2fs.h | 381 return ((char *)ckpt + F2FS_BLKSIZE); in __bitmap_ptr()
|
D | resize.c | 32 2 * F2FS_BLKSIZE + zone_size_bytes - 1) / in get_new_sb()
|
/third_party/f2fs-tools/include/ |
D | f2fs_fs.h | 574 #define F2FS_BLKSIZE 4096 /* support only 4KB block */ macro 577 #define F2FS_BLK_ALIGN(x) (((x) + F2FS_BLKSIZE - 1) / F2FS_BLKSIZE) 1032 #define SUM_JOURNAL_SIZE (F2FS_BLKSIZE - SUM_FOOTER_SIZE -\
|