Home
last modified time | relevance | path

Searched refs:indirect_blks (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/fs/ext4/
Dindirect.c325 int indirect_blks, ext4_lblk_t *offsets, in ext4_alloc_branch() argument
333 for (i = 0; i <= indirect_blks; i++) { in ext4_alloc_branch()
334 if (i == indirect_blks) { in ext4_alloc_branch()
366 if (i == indirect_blks) in ext4_alloc_branch()
389 if (i > 0 && i != indirect_blks && branch[i].bh) in ext4_alloc_branch()
393 (i == indirect_blks) ? ar->len : 1, 0); in ext4_alloc_branch()
524 int indirect_blks; in ext4_ind_map_blocks() local
607 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
613 ar.len = ext4_blks_to_allocate(partial, indirect_blks, in ext4_ind_map_blocks()
619 err = ext4_alloc_branch(handle, &ar, indirect_blks, in ext4_ind_map_blocks()
[all …]
/Linux-v4.19/fs/ext2/
Dinode.c399 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument
416 target = blks + indirect_blks; in ext2_alloc_blocks()
427 while (index < indirect_blks && count) { in ext2_alloc_blocks()
477 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument
488 num = ext2_alloc_blocks(inode, goal, indirect_blks, in ext2_alloc_branch()
497 for (n = 1; n <= indirect_blks; n++) { in ext2_alloc_branch()
514 if ( n == indirect_blks) { in ext2_alloc_branch()
540 for (i = 0; i < indirect_blks; i++) in ext2_alloc_branch()
631 int indirect_blks; in ext2_get_blocks() local
718 indirect_blks = (chain + depth) - partial - 1; in ext2_get_blocks()
[all …]
/Linux-v4.19/fs/f2fs/
Dnode.c605 const long indirect_blks = ADDRS_PER_BLOCK * NIDS_PER_BLOCK; in f2fs_get_next_page_offset() local
619 base += 2 * indirect_blks; in f2fs_get_next_page_offset()
642 const long indirect_blks = ADDRS_PER_BLOCK * NIDS_PER_BLOCK; in get_node_path() local
643 const long dindirect_blks = indirect_blks * NIDS_PER_BLOCK; in get_node_path()
670 if (block < indirect_blks) { in get_node_path()
679 block -= indirect_blks; in get_node_path()
680 if (block < indirect_blks) { in get_node_path()
689 block -= indirect_blks; in get_node_path()
693 offset[n++] = block / indirect_blks; in get_node_path()
Dgc.c548 unsigned int indirect_blks = 2 * NIDS_PER_BLOCK + 4; in f2fs_start_bidx_of_node() local
556 } else if (node_ofs <= indirect_blks) { in f2fs_start_bidx_of_node()
560 int dec = (node_ofs - indirect_blks - 3) / (NIDS_PER_BLOCK + 1); in f2fs_start_bidx_of_node()