Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 113) sorted by relevance

12345

/fs/erofs/
A Dzmap.c351 struct erofs_map_blocks *map = m->map; in z_erofs_get_extent_decompressedlen() local
359 map->m_llen = inode->i_size - map->m_la; in z_erofs_get_extent_decompressedlen()
380 map->m_llen = (lcn << lclusterbits) + m->clusterofs - map->m_la; in z_erofs_get_extent_decompressedlen()
394 .map = map, in z_erofs_map_blocks_fo()
405 map->m_la = 0; in z_erofs_map_blocks_fo()
452 map->m_llen = end - map->m_la; in z_erofs_map_blocks_fo()
464 if (erofs_blkoff(sb, map->m_pa) + map->m_plen > sb->s_blocksize) { in z_erofs_map_blocks_fo()
480 if (map->m_llen > map->m_plen) { in z_erofs_map_blocks_fo()
532 map->m_flags = 0; in z_erofs_map_blocks_ext()
621 map->m_llen = lend - map->m_la; in z_erofs_map_blocks_ext()
[all …]
A Ddata.c100 map->m_deviceid = 0; in erofs_map_blocks()
101 map->m_flags = 0; in erofs_map_blocks()
113 map->m_pa = erofs_pos(sb, vi->startblk) + map->m_la; in erofs_map_blocks()
114 map->m_llen = pos - map->m_la; in erofs_map_blocks()
118 map->m_llen = inode->i_size - map->m_la; in erofs_map_blocks()
162 map->m_plen = map->m_llen; in erofs_map_blocks()
165 erofs_blkoff(sb, map->m_pa) + map->m_plen > blksz) { in erofs_map_blocks()
178 map->m_sb = sb; in erofs_fill_from_devinfo()
179 map->m_dif = dif; in erofs_fill_from_devinfo()
180 map->m_bdev = NULL; in erofs_fill_from_devinfo()
[all …]
A Dfileio.c16 struct erofs_map_blocks map; member
96 struct erofs_map_blocks *map = &io->map; in erofs_fileio_scan_folio() local
103 if (!in_range(pos + cur, map->m_la, map->m_llen)) { in erofs_fileio_scan_folio()
104 map->m_la = pos + cur; in erofs_fileio_scan_folio()
105 map->m_llen = end - cur; in erofs_fileio_scan_folio()
106 err = erofs_map_blocks(inode, map); in erofs_fileio_scan_folio()
111 ofs = folio_pos(folio) + cur - map->m_la; in erofs_fileio_scan_folio()
113 if (map->m_flags & EROFS_MAP_META) { in erofs_fileio_scan_folio()
125 } else if (!(map->m_flags & EROFS_MAP_MAPPED)) { in erofs_fileio_scan_folio()
138 .m_pa = io->map.m_pa + ofs, in erofs_fileio_scan_folio()
[all …]
A Dzdata.c741 struct erofs_map_blocks *map = &fe->map; in z_erofs_register_pcluster() local
805 struct erofs_map_blocks *map = &fe->map; in z_erofs_pcluster_begin() local
826 } else if ((map->m_pa & ~PAGE_MASK) + map->m_plen > PAGE_SIZE) { in z_erofs_pcluster_begin()
862 ptr = erofs_bread(&map->buf, map->m_pa, false); in z_erofs_pcluster_begin()
1012 struct erofs_map_blocks *const map = &f->map; in z_erofs_scan_folio() local
1023 offset + end - 1 >= map->m_la + map->m_llen) { in z_erofs_scan_folio()
1032 cur = offset > map->m_la ? 0 : map->m_la - offset; in z_erofs_scan_folio()
1090 map->m_llen = offset + cur - map->m_la; in z_erofs_scan_folio()
1826 struct erofs_map_blocks *map = &f->map; in z_erofs_pcluster_readmore() local
1843 cur = round_up(map->m_la + map->m_llen, PAGE_SIZE); in z_erofs_pcluster_readmore()
[all …]
/fs/ntfs3/
A Dbitfunc.c36 const u8 *map = (u8 *)lmap + (bit >> 3); in are_bits_clear() local
43 if (*map++ & zero_mask[pos]) in are_bits_clear()
53 if (*map) in are_bits_clear()
60 if (*((size_t *)map)) in are_bits_clear()
65 if (*map) in are_bits_clear()
70 if (pos && (*map & fill_mask[pos])) in are_bits_clear()
94 if ((*map++ & mask) != mask) in are_bits_set()
104 if (*map != 0xFF) in are_bits_set()
111 if (*((size_t *)map) != MINUS_ONE_T) in are_bits_set()
116 if (*map != 0xFF) in are_bits_set()
[all …]
/fs/ocfs2/
A Dheartbeat.c32 map->num_nodes = OCFS2_NODE_MAP_MAX_NODES; in ocfs2_node_map_init()
33 bitmap_zero(map->map, OCFS2_NODE_MAP_MAX_NODES); in ocfs2_node_map_init()
64 struct ocfs2_node_map *map, in ocfs2_node_map_set_bit() argument
69 BUG_ON(bit >= map->num_nodes); in ocfs2_node_map_set_bit()
71 set_bit(bit, map->map); in ocfs2_node_map_set_bit()
76 struct ocfs2_node_map *map, in ocfs2_node_map_clear_bit() argument
81 BUG_ON(bit >= map->num_nodes); in ocfs2_node_map_clear_bit()
83 clear_bit(bit, map->map); in ocfs2_node_map_clear_bit()
88 struct ocfs2_node_map *map, in ocfs2_node_map_test_bit() argument
92 if (bit >= map->num_nodes) { in ocfs2_node_map_test_bit()
[all …]
/fs/ext4/
A Dinode.c393 map->m_pblk, map->m_len); in __check_block_validity()
480 map->m_len, map->m_pblk, map->m_flags, in ext4_map_blocks_es_recheck()
501 map2.m_lblk = map->m_lblk + map->m_len; in ext4_map_query_blocks_next_in_leaf()
659 ext4_es_insert_extent(inode, map->m_lblk, map->m_len, map->m_pblk, in ext4_map_create_blocks()
698 memcpy(&orig_map, map, sizeof(*map)); in ext4_map_blocks()
845 map->m_lblk + map->m_len - 1); in ext4_map_blocks()
1901 memcpy(&orig_map, map, sizeof(*map)); in ext4_da_map_blocks()
2138 if (lblk == map->m_lblk + map->m_len && in mpage_add_bh_to_extent()
3590 next_pblk = map->m_pblk + map->m_len; in ext4_map_blocks_atomic_write_slow()
3594 map->m_lblk += map->m_len; in ext4_map_blocks_atomic_write_slow()
[all …]
A Dreadpage.c229 struct ext4_map_blocks map; in ext4_mpage_readpages() local
232 map.m_pblk = 0; in ext4_mpage_readpages()
233 map.m_lblk = 0; in ext4_mpage_readpages()
234 map.m_len = 0; in ext4_mpage_readpages()
235 map.m_flags = 0; in ext4_mpage_readpages()
267 block_in_file > map.m_lblk && in ext4_mpage_readpages()
268 block_in_file < (map.m_lblk + map.m_len)) { in ext4_mpage_readpages()
276 map.m_flags &= ~EXT4_MAP_MAPPED; in ext4_mpage_readpages()
292 map.m_lblk = block_in_file; in ext4_mpage_readpages()
316 first_block = map.m_pblk; in ext4_mpage_readpages()
[all …]
A Dextents.c3369 if (map->m_lblk + map->m_len < ee_block + ee_len) { in ext4_split_extent()
3378 map->m_lblk + map->m_len, split_flag1, flags1); in ext4_split_extent()
3413 if (map->m_lblk + map->m_len > ee_block + ee_len) in ext4_split_extent()
3718 (unsigned long long)map->m_lblk, map->m_len); in ext4_split_convert_extents()
3722 if (eof_block < map->m_lblk + map->m_len) in ext4_split_convert_extents()
3723 eof_block = map->m_lblk + map->m_len; in ext4_split_convert_extents()
4069 map->m_len = min(map->m_len, in get_implied_cluster_alloc()
4081 map->m_len = min(map->m_len, ee_block - map->m_lblk); in get_implied_cluster_alloc()
4094 map->m_len = min(map->m_len, next - map->m_lblk); in get_implied_cluster_alloc()
4293 map->m_len = min_t(unsigned int, map->m_len, len); in ext4_ext_map_blocks()
[all …]
A Dfast_commit.c926 if (map.m_len == 0) { in ext4_fc_write_inode_data()
943 map.m_len = min(max, map.m_len); in ext4_fc_write_inode_data()
1795 map.m_lblk = cur; in ext4_fc_replay_add_range()
1797 map.m_pblk = 0; in ext4_fc_replay_add_range()
1844 ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, false); in ext4_fc_replay_add_range()
1862 cur += map.m_len; in ext4_fc_replay_add_range()
1905 map.m_lblk = cur; in ext4_fc_replay_del_range()
1914 ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, false); in ext4_fc_replay_del_range()
1917 cur += map.m_len; in ext4_fc_replay_del_range()
1961 map.m_lblk = cur; in ext4_fc_set_bitmaps_and_counters()
[all …]
/fs/udf/
A Dpartition.c29 struct udf_part_map *map; in udf_get_pblock() local
35 map = &sbi->s_partmaps[partition]; in udf_get_pblock()
36 if (map->s_partition_func) in udf_get_pblock()
50 struct udf_part_map *map; in udf_get_pblock_virt15() local
55 map = &sbi->s_partmaps[partition]; in udf_get_pblock_virt15()
113 struct udf_part_map *map; in udf_get_pblock_spar15() local
163 old_block < map->s_partition_root + map->s_partition_len) { in udf_relocate_blocks()
207 map->s_partition_root) & in udf_relocate_blocks()
215 map->s_partition_root) & in udf_relocate_blocks()
279 struct udf_part_map *map; in udf_try_read_meta() local
[all …]
A Dsuper.c351 iput(map->s_uspace.s_table); in udf_free_partition()
977 struct udf_part_map *map; in udf_load_metadata_files() local
1111 struct udf_part_map *map; in udf_fill_partdesc_info() local
1121 if (check_add_overflow(map->s_partition_root, map->s_partition_len, in udf_fill_partdesc_info()
1124 p_index, map->s_partition_root, map->s_partition_len); in udf_fill_partdesc_info()
1139 map->s_partition_root, map->s_partition_len); in udf_fill_partdesc_info()
1187 map->s_partition_len); in udf_fill_partdesc_info()
1285 struct udf_part_map *map; in udf_load_partdesc() local
1305 map = &sbi->s_partmaps[i]; in udf_load_partdesc()
1568 i, map->s_partition_num, type, map->s_volumeseqnum); in udf_load_logicalvol()
[all …]
/fs/xfs/
A Dxfs_bmap_item.c261 struct xfs_map_extent *map; in xfs_bmap_update_log_item() local
271 map->me_owner = bi->bi_owner->i_ino; in xfs_bmap_update_log_item()
279 map->me_flags = bi->bi_type; in xfs_bmap_update_log_item()
425 struct xfs_map_extent *map; in xfs_bui_validate() local
447 if (!xfs_verify_fileext(mp, map->me_startoff, map->me_len)) in xfs_bui_validate()
451 return xfs_verify_rtbext(mp, map->me_startblock, map->me_len); in xfs_bui_validate()
453 return xfs_verify_fsbext(mp, map->me_startblock, map->me_len); in xfs_bui_validate()
461 struct xfs_map_extent *map) in xfs_bui_recover_work() argument
505 struct xfs_map_extent *map; in xfs_bmap_recover_work() local
582 struct xfs_map_extent *map; in xfs_bmap_relog_intent() local
[all …]
A Dxfs_rmap_item.c283 struct xfs_map_extent *map; in xfs_rmap_update_log_item() local
293 map->me_owner = ri->ri_owner; in xfs_rmap_update_log_item()
298 map->me_flags = 0; in xfs_rmap_update_log_item()
473 struct xfs_map_extent *map) in xfs_rui_validate_map() argument
499 if (!xfs_verify_fileext(mp, map->me_startoff, map->me_len)) in xfs_rui_validate_map()
503 return xfs_verify_rtbext(mp, map->me_startblock, map->me_len); in xfs_rui_validate_map()
505 return xfs_verify_fsbext(mp, map->me_startblock, map->me_len); in xfs_rui_validate_map()
513 const struct xfs_map_extent *map) in xfs_rui_recover_work() argument
549 ri->ri_owner = map->me_owner; in xfs_rui_recover_work()
629 struct xfs_map_extent *map; in xfs_rmap_relog_intent() local
[all …]
A Dxfs_buf.h134 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ argument
135 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) };
220 struct xfs_buf_map *map, int nmaps,
231 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_incore()
233 return xfs_buf_get_map(target, &map, 1, XBF_INCORE | flags, bpp); in xfs_buf_incore()
243 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_get()
245 return xfs_buf_get_map(target, &map, 1, 0, bpp); in xfs_buf_get()
257 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_read()
259 return xfs_buf_read_map(target, &map, 1, flags, bpp, ops, in xfs_buf_read()
270 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_readahead()
[all …]
A Dxfs_buf.c255 struct xfs_buf_map *map, in xfs_buf_alloc() argument
388 struct xfs_buf_map *map) in xfs_buf_map_verify() argument
401 if (map->bm_bn < 0 || map->bm_bn >= eofs) { in xfs_buf_map_verify()
460 struct xfs_buf_map *map, in xfs_buf_lookup() argument
496 struct xfs_buf_map *map, in xfs_buf_find_insert() argument
546 const struct xfs_buf_map *map) in xfs_buftarg_get_pag() argument
573 struct xfs_buf_map *map, in xfs_buf_get_map() argument
687 struct xfs_buf_map *map, in xfs_buf_read_map() argument
764 struct xfs_buf_map *map, in xfs_buf_readahead_map() argument
1338 unsigned int map = 0; in xfs_buf_submit_bio() local
[all …]
A Dxfs_dir2_readdir.c254 struct xfs_bmbt_irec map; in xfs_dir2_leaf_readbuf() local
277 if (map.br_startoff >= last_da) in xfs_dir2_leaf_readbuf()
279 xfs_trim_extent(&map, map_off, last_da - map_off); in xfs_dir2_leaf_readbuf()
286 map.br_startoff, 0, &bp); in xfs_dir2_leaf_readbuf()
299 *ra_blk = map.br_startoff; in xfs_dir2_leaf_readbuf()
300 next_ra = map.br_startoff + geo->fsbcount; in xfs_dir2_leaf_readbuf()
303 if (map.br_blockcount < geo->fsbcount && in xfs_dir2_leaf_readbuf()
304 !xfs_iext_next_extent(ifp, &icur, &map)) in xfs_dir2_leaf_readbuf()
306 if (map.br_startoff >= last_da) in xfs_dir2_leaf_readbuf()
315 next_ra < map.br_startoff + map.br_blockcount) { in xfs_dir2_leaf_readbuf()
[all …]
/fs/f2fs/
A Ddata.c1495 *map->m_next_extent = pgoff + map->m_len; in f2fs_map_blocks_cached()
1500 map->m_pblk, map->m_len); in f2fs_map_blocks_cached()
1508 map->m_len = min(map->m_len, dev->end_blk + 1 - map->m_pblk); in f2fs_map_blocks_cached()
1758 map->m_pblk, map->m_len); in f2fs_map_blocks()
1816 map.m_len = last_lblk - map.m_lblk; in f2fs_overwrite_io()
1820 map.m_lblk += map.m_len; in f2fs_overwrite_io()
1951 memset(&map, 0, sizeof(map)); in f2fs_fiemap()
1981 map.m_lblk + map.m_len - 1 == last_blk && in f2fs_fiemap()
3826 memset(&map, 0, sizeof(map)); in f2fs_bmap()
3941 memset(&map, 0, sizeof(map)); in check_swap_activate()
[all …]
/fs/xfs/libxfs/
A Dxfs_attr_remote.c420 blkcnt, map, &nmap, in xfs_attr_rmtval_get()
448 lblkno += map[i].br_blockcount; in xfs_attr_rmtval_get()
493 struct xfs_bmbt_irec map; in xfs_attr_rmtval_set_value() local
520 blkcnt, &map, &nmap, in xfs_attr_rmtval_set_value()
546 lblkno += map.br_blockcount; in xfs_attr_rmtval_set_value()
547 blkcnt -= map.br_blockcount; in xfs_attr_rmtval_set_value()
557 struct xfs_bmbt_irec *map, in xfs_attr_rmtval_stale() argument
636 map, &nmap); in xfs_attr_rmtval_set_blk()
668 struct xfs_bmbt_irec map; in xfs_attr_rmtval_invalidate() local
687 lblkno += map.br_blockcount; in xfs_attr_rmtval_invalidate()
[all …]
A Dxfs_bit.c20 xfs_bitmap_empty(uint *map, uint size) in xfs_bitmap_empty() argument
25 if (map[i] != 0) in xfs_bitmap_empty()
37 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument
39 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_contig_bits()
76 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument
78 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_next_bit()
/fs/btrfs/
A Dvolumes.c1887 ret = map->start + map->chunk_len; in find_next_chunk()
3209 if (unlikely(map->start > logical || map->start + map->chunk_len <= logical)) { in btrfs_get_chunk_map()
3213 map->start + map->chunk_len); in btrfs_get_chunk_map()
5509 if (!map) in btrfs_alloc_chunk_map()
6483 u32 factor = map->num_stripes / map->sub_stripes; in map_blocks_raid10()
7060 if (map && map->start <= logical && map->start + map->chunk_len > logical) { in read_one_chunk()
7087 map->stripe_size = btrfs_calc_stripe_length(map); in read_one_chunk()
7116 map->start, map->chunk_len, ret); in read_one_chunk()
7432 next_start = map->start + map->chunk_len; in btrfs_check_rw_degradable()
8027 if (map->num_stripes != map->verified_stripes) { in verify_chunk_dev_extent_mapping()
[all …]
A Dzoned.c1462 struct btrfs_chunk_map *map, in btrfs_load_block_group_raid1() argument
1598 map->num_stripes / map->sub_stripes); in btrfs_load_block_group_raid10()
1600 (map->num_stripes / map->sub_stripes), in btrfs_load_block_group_raid10()
1625 struct btrfs_chunk_map *map; in btrfs_load_block_group_zone_info() local
1648 if (!map) in btrfs_load_block_group_zone_info()
1651 cache->physical_map = map; in btrfs_load_block_group_zone_info()
2159 struct btrfs_chunk_map *map; in btrfs_zone_activate() local
2193 device = map->stripes[i].dev; in btrfs_zone_activate()
2297 struct btrfs_chunk_map *map; in do_zone_finish() local
2872 struct btrfs_chunk_map *map; in btrfs_reset_unused_block_groups() local
[all …]
/fs/omfs/
A Dbitmap.c48 static int set_run(struct super_block *sb, int map, in set_run() argument
64 map++; in set_run()
69 clus_to_blk(sbi, sbi->s_bitmap_ino) + map); in set_run()
74 set_bit(bit, sbi->s_imap[map]); in set_run()
77 clear_bit(bit, sbi->s_imap[map]); in set_run()
96 unsigned int map, bit; in omfs_allocate_block() local
102 map = tmp; in omfs_allocate_block()
105 if (map >= sbi->s_imap_size || test_and_set_bit(bit, sbi->s_imap[map])) in omfs_allocate_block()
180 unsigned int map, bit; in omfs_clear_range() local
185 map = tmp; in omfs_clear_range()
[all …]
/fs/adfs/
A Dmap.c267 v0 += map[i] + (v3 >> 8); in adfs_calczonecheck()
269 v1 += map[i + 1] + (v0 >> 8); in adfs_calczonecheck()
271 v2 += map[i + 2] + (v1 >> 8); in adfs_calczonecheck()
273 v3 += map[i + 3] + (v2 >> 8); in adfs_calczonecheck()
277 v1 += map[1] + (v0 >> 8); in adfs_calczonecheck()
278 v2 += map[2] + (v1 >> 8); in adfs_calczonecheck()
279 v3 += map[3] + (v2 >> 8); in adfs_calczonecheck()
290 unsigned char *map; in adfs_checkmap() local
292 map = dm[i].dm_bh->b_data; in adfs_checkmap()
294 if (adfs_calczonecheck(sb, map) != map[0]) { in adfs_checkmap()
[all …]
/fs/nfs/blocklayout/
A Ddev.c225 struct pnfs_block_dev_map *map) in bl_map_simple() argument
227 map->start = dev->start; in bl_map_simple()
228 map->len = dev->len; in bl_map_simple()
246 child->map(child, offset - child->start, map); in bl_map_concat()
280 child->map(child, disk_offset, map); in bl_map_stripe()
282 map->start += offset; in bl_map_stripe()
284 map->len = dev->chunk_size; in bl_map_stripe()
314 d->map = bl_map_simple; in bl_parse_simple()
417 d->map = bl_map_simple; in bl_parse_scsi()
479 d->map = bl_map_concat; in bl_parse_concat()
[all …]

Completed in 96 milliseconds

12345