Home
last modified time | relevance | path

Searched refs:node_ofs (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/fs/f2fs/
Dgc.c974 block_t f2fs_start_bidx_of_node(unsigned int node_ofs, struct inode *inode) in f2fs_start_bidx_of_node() argument
979 if (node_ofs == 0) in f2fs_start_bidx_of_node()
982 if (node_ofs <= 2) { in f2fs_start_bidx_of_node()
983 bidx = node_ofs - 1; in f2fs_start_bidx_of_node()
984 } else if (node_ofs <= indirect_blks) { in f2fs_start_bidx_of_node()
985 int dec = (node_ofs - 4) / (NIDS_PER_BLOCK + 1); in f2fs_start_bidx_of_node()
986 bidx = node_ofs - 2 - dec; in f2fs_start_bidx_of_node()
988 int dec = (node_ofs - indirect_blks - 3) / (NIDS_PER_BLOCK + 1); in f2fs_start_bidx_of_node()
989 bidx = node_ofs - 5 - dec; in f2fs_start_bidx_of_node()
Df2fs.h3537 block_t f2fs_start_bidx_of_node(unsigned int node_ofs, struct inode *inode);