Home
last modified time | relevance | path

Searched refs:bidx (Results 1 – 5 of 5) sorted by relevance

/fs/affs/
Dfile.c530 u32 bidx, boff, bsize; in affs_do_readpage_ofs() local
538 bidx = tmp / bsize; in affs_do_readpage_ofs()
542 bh = affs_bread_ino(inode, bidx, create); in affs_do_readpage_ofs()
549 bidx++; in affs_do_readpage_ofs()
561 u32 bidx, boff; in affs_extent_file_ofs() local
569 bidx = size / bsize; in affs_extent_file_ofs()
572 bh = affs_bread_ino(inode, bidx, 0); in affs_extent_file_ofs()
582 bidx++; in affs_extent_file_ofs()
583 } else if (bidx) { in affs_extent_file_ofs()
584 bh = affs_bread_ino(inode, bidx - 1, 0); in affs_extent_file_ofs()
[all …]
/fs/f2fs/
Ddir.c157 unsigned long bidx = 0; in dir_block_index() local
160 bidx += dir_buckets(i, dir_level) * bucket_blocks(i); in dir_block_index()
161 bidx += idx * bucket_blocks(level); in dir_block_index()
162 return bidx; in dir_block_index()
307 unsigned int bidx, end_block; in find_in_level() local
317 bidx = dir_block_index(level, F2FS_I(dir)->i_dir_level, in find_in_level()
319 end_block = bidx + nblock; in find_in_level()
321 while (bidx < end_block) { in find_in_level()
323 dentry_page = f2fs_find_data_page(dir, bidx, &next_pgofs); in find_in_level()
327 bidx = next_pgofs; in find_in_level()
[all …]
Dgc.c1085 unsigned int bidx; in f2fs_start_bidx_of_node() local
1091 bidx = node_ofs - 1; in f2fs_start_bidx_of_node()
1095 bidx = node_ofs - 2 - dec; in f2fs_start_bidx_of_node()
1099 bidx = node_ofs - 5 - dec; in f2fs_start_bidx_of_node()
1101 return bidx * ADDRS_PER_BLOCK(inode) + ADDRS_PER_INODE(inode); in f2fs_start_bidx_of_node()
1264 static int move_data_block(struct inode *inode, block_t bidx, in move_data_block() argument
1290 page = f2fs_grab_cache_page(inode->i_mapping, bidx, false); in move_data_block()
1304 err = f2fs_get_dnode_of_data(&dn, bidx, LOOKUP_NODE); in move_data_block()
1426 static int move_data_page(struct inode *inode, block_t bidx, int gc_type, in move_data_page() argument
1432 page = f2fs_get_lock_data_page(inode, bidx, true); in move_data_page()
Drecovery.c478 block_t bidx; in check_index_in_prev_nodes() local
552 bidx = f2fs_start_bidx_of_node(offset, inode) + in check_index_in_prev_nodes()
563 if (f2fs_get_dnode_of_data(&tdn, bidx, LOOKUP_NODE)) in check_index_in_prev_nodes()
Ddata.c1583 int bidx = f2fs_target_device_index(sbi, map->m_pblk); in f2fs_map_blocks_cached() local
1584 struct f2fs_dev_info *dev = &sbi->devs[bidx]; in f2fs_map_blocks_cached()
1612 int bidx = 0; in f2fs_map_blocks() local
1731 bidx = f2fs_target_device_index(sbi, blkaddr); in f2fs_map_blocks()
1743 map->m_bdev = FDEV(bidx).bdev; in f2fs_map_blocks()
1748 if (map->m_multidev_dio && map->m_bdev != FDEV(bidx).bdev) in f2fs_map_blocks()
1813 bidx = f2fs_target_device_index(sbi, map->m_pblk); in f2fs_map_blocks()
1815 map->m_bdev = FDEV(bidx).bdev; in f2fs_map_blocks()
1816 map->m_pblk -= FDEV(bidx).start_blk; in f2fs_map_blocks()
1823 FDEV(bidx).end_blk + 1); in f2fs_map_blocks()