Lines Matching defs:map
1621 struct f2fs_map_blocks map = { .m_next_pgofs = NULL,
1644 map.m_lblk = pg_start;
1645 map.m_len = pg_end - pg_start;
1647 map.m_len++;
1649 if (!map.m_len)
1654 block_t sec_len = roundup(map.m_len, sec_blks);
1656 map.m_len = sec_blks;
1672 map.m_seg_type = CURSEG_COLD_DATA_PINNED;
1673 err = f2fs_map_blocks(inode, &map, 1, F2FS_GET_BLOCK_PRE_DIO);
1677 expanded += map.m_len;
1678 sec_len -= map.m_len;
1679 map.m_lblk += map.m_len;
1683 map.m_len = expanded;
1685 err = f2fs_map_blocks(inode, &map, 1, F2FS_GET_BLOCK_PRE_AIO);
1686 expanded = map.m_len;
2590 struct f2fs_map_blocks map = { .m_next_extent = NULL,
2627 map.m_lblk = pg_start;
2628 map.m_next_pgofs = &next_pgofs;
2635 while (map.m_lblk < pg_end) {
2636 map.m_len = pg_end - map.m_lblk;
2637 err = f2fs_map_blocks(inode, &map, 0, F2FS_GET_BLOCK_DEFAULT);
2641 if (!(map.m_flags & F2FS_MAP_FLAGS)) {
2642 map.m_lblk = next_pgofs;
2646 if (blk_end && blk_end != map.m_pblk)
2650 total += map.m_len;
2652 blk_end = map.m_pblk + map.m_len;
2654 map.m_lblk += map.m_len;
2674 map.m_lblk = pg_start;
2675 map.m_len = pg_end - pg_start;
2678 while (map.m_lblk < pg_end) {
2683 map.m_len = pg_end - map.m_lblk;
2684 err = f2fs_map_blocks(inode, &map, 0, F2FS_GET_BLOCK_DEFAULT);
2688 if (!(map.m_flags & F2FS_MAP_FLAGS)) {
2689 map.m_lblk = next_pgofs;
2695 idx = map.m_lblk;
2696 while (idx < map.m_lblk + map.m_len && cnt < blk_per_seg) {
2713 map.m_lblk = idx;
2715 if (map.m_lblk < pg_end && cnt < blk_per_seg)
3314 struct f2fs_map_blocks map;
3322 map.m_lblk = 0;
3323 map.m_pblk = 0;
3324 map.m_next_pgofs = NULL;
3325 map.m_next_extent = &m_next_extent;
3326 map.m_seg_type = NO_CHECK_TYPE;
3327 map.m_may_create = false;
3330 while (map.m_lblk < end) {
3331 map.m_len = end - map.m_lblk;
3334 err = f2fs_map_blocks(inode, &map, 0, F2FS_GET_BLOCK_PRECACHE);
3339 map.m_lblk = m_next_extent;