Home
last modified time | relevance | path

Searched refs:indirect_blks (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/fs/ext4/
H A Dindirect.c307 * @indirect_blks: number of allocated indirect blocks
330 int indirect_blks, ext4_lblk_t *offsets, in ext4_alloc_branch()
338 for (i = 0; i <= indirect_blks; i++) { in ext4_alloc_branch()
339 if (i == indirect_blks) { in ext4_alloc_branch()
374 if (i == indirect_blks) in ext4_alloc_branch()
390 if (i == indirect_blks) { in ext4_alloc_branch()
537 int indirect_blks; in ext4_ind_map_blocks() local
621 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
627 ar.len = ext4_blks_to_allocate(partial, indirect_blks, in ext4_ind_map_blocks()
633 err = ext4_alloc_branch(handle, &ar, indirect_blks, in ext4_ind_map_blocks()
328 ext4_alloc_branch(handle_t *handle, struct ext4_allocation_request *ar, int indirect_blks, ext4_lblk_t *offsets, Indirect *branch) ext4_alloc_branch() argument
[all...]
/kernel/linux/linux-6.6/fs/ext2/
H A Dinode.c391 * @indirect_blks: The number of blocks needed to allocate for indirect blocks.
400 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks()
417 target = blks + indirect_blks; in ext2_alloc_blocks()
428 while (index < indirect_blks && count) { in ext2_alloc_blocks()
455 * @indirect_blks: depth of the chain (number of blocks to allocate)
480 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch()
491 num = ext2_alloc_blocks(inode, goal, indirect_blks, in ext2_alloc_branch()
500 for (n = 1; n <= indirect_blks; n++) { in ext2_alloc_branch()
517 if ( n == indirect_blks) { in ext2_alloc_branch()
543 for (i = 0; i < indirect_blks; in ext2_alloc_branch()
399 ext2_alloc_blocks(struct inode *inode, ext2_fsblk_t goal, int indirect_blks, int blks, ext2_fsblk_t new_blocks[4], int *err) ext2_alloc_blocks() argument
479 ext2_alloc_branch(struct inode *inode, int indirect_blks, int *blks, ext2_fsblk_t goal, int *offsets, Indirect *branch) ext2_alloc_branch() argument
634 int indirect_blks; ext2_get_blocks() local
[all...]
/kernel/linux/linux-6.6/fs/ext4/
H A Dindirect.c307 * @indirect_blks: number of allocated indirect blocks
330 int indirect_blks, ext4_lblk_t *offsets, in ext4_alloc_branch()
338 for (i = 0; i <= indirect_blks; i++) { in ext4_alloc_branch()
339 if (i == indirect_blks) { in ext4_alloc_branch()
375 if (i == indirect_blks) in ext4_alloc_branch()
391 if (i == indirect_blks) { in ext4_alloc_branch()
539 int indirect_blks; in ext4_ind_map_blocks() local
623 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
629 ar.len = ext4_blks_to_allocate(partial, indirect_blks, in ext4_ind_map_blocks()
635 err = ext4_alloc_branch(handle, &ar, indirect_blks, in ext4_ind_map_blocks()
328 ext4_alloc_branch(handle_t *handle, struct ext4_allocation_request *ar, int indirect_blks, ext4_lblk_t *offsets, Indirect *branch) ext4_alloc_branch() argument
[all...]
/kernel/linux/linux-5.10/fs/ext2/
H A Dinode.c389 * @indirect_blks: the number of blocks need to allocate for indirect
396 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks()
413 target = blks + indirect_blks; in ext2_alloc_blocks()
424 while (index < indirect_blks && count) { in ext2_alloc_blocks()
451 * @indirect_blks: depth of the chain (number of blocks to allocate)
476 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch()
487 num = ext2_alloc_blocks(inode, goal, indirect_blks, in ext2_alloc_branch()
496 for (n = 1; n <= indirect_blks; n++) { in ext2_alloc_branch()
513 if ( n == indirect_blks) { in ext2_alloc_branch()
539 for (i = 0; i < indirect_blks; in ext2_alloc_branch()
395 ext2_alloc_blocks(struct inode *inode, ext2_fsblk_t goal, int indirect_blks, int blks, ext2_fsblk_t new_blocks[4], int *err) ext2_alloc_blocks() argument
475 ext2_alloc_branch(struct inode *inode, int indirect_blks, int *blks, ext2_fsblk_t goal, int *offsets, Indirect *branch) ext2_alloc_branch() argument
630 int indirect_blks; ext2_get_blocks() local
[all...]
/kernel/linux/linux-5.10/fs/f2fs/
H A Dnode.c610 const long indirect_blks = ADDRS_PER_BLOCK(dn->inode) * NIDS_PER_BLOCK; in f2fs_get_next_page_offset() local
624 base += 2 * indirect_blks; in f2fs_get_next_page_offset()
649 const long indirect_blks = ADDRS_PER_BLOCK(inode) * NIDS_PER_BLOCK; in get_node_path() local
650 const long dindirect_blks = indirect_blks * NIDS_PER_BLOCK; in get_node_path()
677 if (block < indirect_blks) { in get_node_path()
686 block -= indirect_blks; in get_node_path()
687 if (block < indirect_blks) { in get_node_path()
696 block -= indirect_blks; in get_node_path()
700 offset[n++] = block / indirect_blks; in get_node_path()
H A Dgc.c976 unsigned int indirect_blks = 2 * NIDS_PER_BLOCK + 4; in f2fs_start_bidx_of_node() local
984 } else if (node_ofs <= indirect_blks) { in f2fs_start_bidx_of_node()
988 int dec = (node_ofs - indirect_blks - 3) / (NIDS_PER_BLOCK + 1); in f2fs_start_bidx_of_node()
/kernel/linux/linux-6.6/fs/f2fs/
H A Dnode.c649 const long indirect_blks = ADDRS_PER_BLOCK(dn->inode) * NIDS_PER_BLOCK; in f2fs_get_next_page_offset() local
663 base += 2 * indirect_blks; in f2fs_get_next_page_offset()
688 const long indirect_blks = ADDRS_PER_BLOCK(inode) * NIDS_PER_BLOCK; in get_node_path() local
689 const long dindirect_blks = indirect_blks * NIDS_PER_BLOCK; in get_node_path()
716 if (block < indirect_blks) { in get_node_path()
725 block -= indirect_blks; in get_node_path()
726 if (block < indirect_blks) { in get_node_path()
735 block -= indirect_blks; in get_node_path()
739 offset[n++] = block / indirect_blks; in get_node_path()
H A Dgc.c1084 unsigned int indirect_blks = 2 * NIDS_PER_BLOCK + 4; in f2fs_start_bidx_of_node() local
1092 } else if (node_ofs <= indirect_blks) { in f2fs_start_bidx_of_node()
1097 int dec = (node_ofs - indirect_blks - 3) / (NIDS_PER_BLOCK + 1); in f2fs_start_bidx_of_node()

Completed in 19 milliseconds