/fs/ocfs2/ |
D | heartbeat.c | 43 static inline void __ocfs2_node_map_set_bit(struct ocfs2_node_map *map, 45 static inline void __ocfs2_node_map_clear_bit(struct ocfs2_node_map *map, 50 static void ocfs2_node_map_init(struct ocfs2_node_map *map) in ocfs2_node_map_init() argument 52 map->num_nodes = OCFS2_NODE_MAP_MAX_NODES; in ocfs2_node_map_init() 53 memset(map->map, 0, BITS_TO_LONGS(OCFS2_NODE_MAP_MAX_NODES) * in ocfs2_node_map_init() 84 static inline void __ocfs2_node_map_set_bit(struct ocfs2_node_map *map, in __ocfs2_node_map_set_bit() argument 87 set_bit(bit, map->map); in __ocfs2_node_map_set_bit() 91 struct ocfs2_node_map *map, in ocfs2_node_map_set_bit() argument 96 BUG_ON(bit >= map->num_nodes); in ocfs2_node_map_set_bit() 98 __ocfs2_node_map_set_bit(map, bit); in ocfs2_node_map_set_bit() [all …]
|
D | heartbeat.h | 36 struct ocfs2_node_map *map, 39 struct ocfs2_node_map *map, 42 struct ocfs2_node_map *map,
|
/fs/reiserfs/ |
D | objectid.c | 17 static void check_objectid_map(struct super_block *s, __le32 * map) in check_objectid_map() argument 19 if (le32_to_cpu(map[0]) != 1) in check_objectid_map() 21 (long unsigned int)le32_to_cpu(map[0])); in check_objectid_map() 27 static void check_objectid_map(struct super_block *s, __le32 * map) in check_objectid_map() argument 51 __le32 *map = objectid_map(s, rs); in reiserfs_get_unused_objectid() local 56 check_objectid_map(s, map); in reiserfs_get_unused_objectid() 60 unused_objectid = le32_to_cpu(map[1]); in reiserfs_get_unused_objectid() 72 map[1] = cpu_to_le32(unused_objectid + 1); in reiserfs_get_unused_objectid() 80 if (sb_oid_cursize(rs) > 2 && map[1] == map[2]) { in reiserfs_get_unused_objectid() 81 memmove(map + 1, map + 3, in reiserfs_get_unused_objectid() [all …]
|
/fs/ext4/ |
D | readpage.c | 153 struct ext4_map_blocks map; in ext4_mpage_readpages() local 155 map.m_pblk = 0; in ext4_mpage_readpages() 156 map.m_lblk = 0; in ext4_mpage_readpages() 157 map.m_len = 0; in ext4_mpage_readpages() 158 map.m_flags = 0; in ext4_mpage_readpages() 186 if ((map.m_flags & EXT4_MAP_MAPPED) && in ext4_mpage_readpages() 187 block_in_file > map.m_lblk && in ext4_mpage_readpages() 188 block_in_file < (map.m_lblk + map.m_len)) { in ext4_mpage_readpages() 189 unsigned map_offset = block_in_file - map.m_lblk; in ext4_mpage_readpages() 190 unsigned last = map.m_len - map_offset; in ext4_mpage_readpages() [all …]
|
D | inode.c | 375 struct ext4_map_blocks *map) in __check_block_validity() argument 377 if (!ext4_data_block_valid(EXT4_SB(inode->i_sb), map->m_pblk, in __check_block_validity() 378 map->m_len)) { in __check_block_validity() 379 ext4_error_inode(inode, func, line, map->m_pblk, in __check_block_validity() 381 "(length %d)", (unsigned long) map->m_lblk, in __check_block_validity() 382 map->m_len); in __check_block_validity() 388 #define check_block_validity(inode, map) \ argument 389 __check_block_validity((inode), __func__, __LINE__, (map)) 395 struct ext4_map_blocks *map, in ext4_map_blocks_es_recheck() argument 400 map->m_flags = 0; in ext4_map_blocks_es_recheck() [all …]
|
D | extents.c | 100 struct ext4_map_blocks *map, 3290 struct ext4_map_blocks *map, in ext4_split_extent() argument 3301 int allocated = map->m_len; in ext4_split_extent() 3309 if (map->m_lblk + map->m_len < ee_block + ee_len) { in ext4_split_extent() 3318 map->m_lblk + map->m_len, split_flag1, flags1); in ext4_split_extent() 3322 allocated = ee_len - (map->m_lblk - ee_block); in ext4_split_extent() 3328 path = ext4_find_extent(inode, map->m_lblk, ppath, 0); in ext4_split_extent() 3335 (unsigned long) map->m_lblk); in ext4_split_extent() 3341 if (map->m_lblk >= ee_block) { in ext4_split_extent() 3349 map->m_lblk, split_flag1, flags); in ext4_split_extent() [all …]
|
D | file.c | 149 struct ext4_map_blocks map; 153 map.m_lblk = pos >> blkbits; 154 map.m_len = (EXT4_BLOCK_ALIGN(pos + length, blkbits) >> blkbits) 155 - map.m_lblk; 156 len = map.m_len; 158 err = ext4_map_blocks(NULL, inode, &map, 0); 171 if (err == len && (map.m_flags & EXT4_MAP_MAPPED)) 255 struct ext4_map_blocks map; in ext4_file_dio_write() local 259 map.m_lblk = pos >> blkbits; in ext4_file_dio_write() 260 map.m_len = (EXT4_BLOCK_ALIGN(pos + length, blkbits) >> blkbits) in ext4_file_dio_write() [all …]
|
/fs/udf/ |
D | partition.c | 34 struct udf_part_map *map; in udf_get_pblock() local 40 map = &sbi->s_partmaps[partition]; in udf_get_pblock() 41 if (map->s_partition_func) in udf_get_pblock() 42 return map->s_partition_func(sb, block, partition, offset); in udf_get_pblock() 44 return map->s_partition_root + block + offset; in udf_get_pblock() 55 struct udf_part_map *map; in udf_get_pblock_virt15() local 59 map = &sbi->s_partmaps[partition]; in udf_get_pblock_virt15() 60 vdata = &map->s_type_specific.s_virtual; in udf_get_pblock_virt15() 119 struct udf_part_map *map; in udf_get_pblock_spar15() local 123 map = &sbi->s_partmaps[partition]; in udf_get_pblock_spar15() [all …]
|
D | super.c | 280 static void udf_free_partition(struct udf_part_map *map) in udf_free_partition() argument 285 if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_TABLE) in udf_free_partition() 286 iput(map->s_uspace.s_table); in udf_free_partition() 287 if (map->s_partition_flags & UDF_PART_FLAG_FREED_TABLE) in udf_free_partition() 288 iput(map->s_fspace.s_table); in udf_free_partition() 289 if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_BITMAP) in udf_free_partition() 290 udf_sb_free_bitmap(map->s_uspace.s_bitmap); in udf_free_partition() 291 if (map->s_partition_flags & UDF_PART_FLAG_FREED_BITMAP) in udf_free_partition() 292 udf_sb_free_bitmap(map->s_fspace.s_bitmap); in udf_free_partition() 293 if (map->s_partition_type == UDF_SPARABLE_MAP15) in udf_free_partition() [all …]
|
D | balloc.c | 737 struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition]; in udf_free_blocks() local 739 if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_BITMAP) { in udf_free_blocks() 740 udf_bitmap_free_blocks(sb, map->s_uspace.s_bitmap, in udf_free_blocks() 742 } else if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_TABLE) { in udf_free_blocks() 743 udf_table_free_blocks(sb, map->s_uspace.s_table, in udf_free_blocks() 745 } else if (map->s_partition_flags & UDF_PART_FLAG_FREED_BITMAP) { in udf_free_blocks() 746 udf_bitmap_free_blocks(sb, map->s_fspace.s_bitmap, in udf_free_blocks() 748 } else if (map->s_partition_flags & UDF_PART_FLAG_FREED_TABLE) { in udf_free_blocks() 749 udf_table_free_blocks(sb, map->s_fspace.s_table, in udf_free_blocks() 764 struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition]; in udf_prealloc_blocks() local [all …]
|
/fs/xfs/ |
D | xfs_attr_remote.c | 336 struct xfs_bmbt_irec map[ATTR_RMTVALUE_MAPSIZE]; in xfs_attr_rmtval_get() local 355 blkcnt, map, &nmap, in xfs_attr_rmtval_get() 365 ASSERT((map[i].br_startblock != DELAYSTARTBLOCK) && in xfs_attr_rmtval_get() 366 (map[i].br_startblock != HOLESTARTBLOCK)); in xfs_attr_rmtval_get() 367 dblkno = XFS_FSB_TO_DADDR(mp, map[i].br_startblock); in xfs_attr_rmtval_get() 368 dblkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount); in xfs_attr_rmtval_get() 383 lblkno += map[i].br_blockcount; in xfs_attr_rmtval_get() 384 blkcnt -= map[i].br_blockcount; in xfs_attr_rmtval_get() 401 struct xfs_bmbt_irec map; in xfs_attr_rmtval_set() local 442 args->firstblock, args->total, &map, &nmap, in xfs_attr_rmtval_set() [all …]
|
D | xfs_buf.h | 111 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ argument 112 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) }; 171 struct xfs_buf_map *map, int nmaps, 181 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_incore() 182 return _xfs_buf_find(target, &map, 1, flags, NULL); in xfs_incore() 186 struct xfs_buf_map *map, int nmaps, 196 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_alloc() 197 return _xfs_buf_alloc(target, &map, 1, flags); in xfs_buf_alloc() 201 struct xfs_buf_map *map, int nmaps, 204 struct xfs_buf_map *map, int nmaps, [all …]
|
D | xfs_bit.c | 34 xfs_bitmap_empty(uint *map, uint size) in xfs_bitmap_empty() argument 40 ret |= map[i]; in xfs_bitmap_empty() 51 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument 53 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_contig_bits() 90 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument 92 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_next_bit()
|
D | xfs_file.c | 1036 struct xfs_bmbt_irec *map, in xfs_find_get_desired_pgoff() argument 1053 endoff = XFS_FSB_TO_B(mp, map->br_startoff + map->br_blockcount); in xfs_find_get_desired_pgoff() 1212 struct xfs_bmbt_irec map[2]; in xfs_seek_data() local 1216 error = xfs_bmapi_read(ip, fsbno, end - fsbno, map, &nmap, in xfs_seek_data() 1229 XFS_FSB_TO_B(mp, map[i].br_startoff)); in xfs_seek_data() 1232 if (map[i].br_startblock == DELAYSTARTBLOCK || in xfs_seek_data() 1233 (map[i].br_state == XFS_EXT_NORM && in xfs_seek_data() 1234 !isnullstartblock(map[i].br_startblock))) in xfs_seek_data() 1241 if (map[i].br_state == XFS_EXT_UNWRITTEN) { in xfs_seek_data() 1242 if (xfs_find_get_desired_pgoff(inode, &map[i], in xfs_seek_data() [all …]
|
D | xfs_trans_buf.c | 44 struct xfs_buf_map *map, in xfs_trans_buf_item_match() argument 53 len += map[i].bm_len; in xfs_trans_buf_item_match() 59 XFS_BUF_ADDR(blip->bli_buf) == map[0].bm_bn && in xfs_trans_buf_item_match() 141 struct xfs_buf_map *map, in xfs_trans_get_buf_map() argument 149 return xfs_buf_get_map(target, map, nmaps, flags); in xfs_trans_get_buf_map() 157 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_get_buf_map() 174 bp = xfs_buf_get_map(target, map, nmaps, flags); in xfs_trans_get_buf_map() 257 struct xfs_buf_map *map, in xfs_trans_read_buf_map() argument 269 bp = xfs_buf_read_map(target, map, nmaps, flags, ops); in xfs_trans_read_buf_map() 307 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_read_buf_map() [all …]
|
D | xfs_dir2_leaf.c | 1097 struct xfs_bmbt_irec map[]; /* map vector for blocks */ member 1110 struct xfs_bmbt_irec *map = mip->map; in xfs_dir2_leaf_readbuf() local 1130 j = min_t(int, map->br_blockcount, i); in xfs_dir2_leaf_readbuf() 1131 map->br_blockcount -= j; in xfs_dir2_leaf_readbuf() 1132 map->br_startblock += j; in xfs_dir2_leaf_readbuf() 1133 map->br_startoff += j; in xfs_dir2_leaf_readbuf() 1138 if (!map->br_blockcount && --mip->map_valid) in xfs_dir2_leaf_readbuf() 1139 memmove(&map[0], &map[1], in xfs_dir2_leaf_readbuf() 1140 sizeof(map[0]) * mip->map_valid); in xfs_dir2_leaf_readbuf() 1166 &map[mip->map_valid], &mip->nmap, 0); in xfs_dir2_leaf_readbuf() [all …]
|
D | xfs_buf.c | 205 struct xfs_buf_map *map, in _xfs_buf_alloc() argument 245 bp->b_bn = map[0].bm_bn; in _xfs_buf_alloc() 248 bp->b_maps[i].bm_bn = map[i].bm_bn; in _xfs_buf_alloc() 249 bp->b_maps[i].bm_len = map[i].bm_len; in _xfs_buf_alloc() 250 bp->b_length += map[i].bm_len; in _xfs_buf_alloc() 479 struct xfs_buf_map *map, in _xfs_buf_find() argument 489 xfs_daddr_t blkno = map[0].bm_bn; in _xfs_buf_find() 495 numblks += map[i].bm_len; in _xfs_buf_find() 609 struct xfs_buf_map *map, in xfs_buf_get_map() argument 617 bp = _xfs_buf_find(target, map, nmaps, flags, NULL); in xfs_buf_get_map() [all …]
|
D | xfs_bit.h | 76 extern int xfs_bitmap_empty(uint *map, uint size); 79 extern int xfs_contig_bits(uint *map, uint size, uint start_bit); 82 extern int xfs_next_bit(uint *map, uint size, uint start_bit);
|
D | xfs_dquot.c | 419 xfs_bmbt_irec_t map; in xfs_qm_dqalloc() local 447 &map, &nmaps, &flist); in xfs_qm_dqalloc() 450 ASSERT(map.br_blockcount == XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_qm_dqalloc() 452 ASSERT((map.br_startblock != DELAYSTARTBLOCK) && in xfs_qm_dqalloc() 453 (map.br_startblock != HOLESTARTBLOCK)); in xfs_qm_dqalloc() 458 dqp->q_blkno = XFS_FSB_TO_DADDR(mp, map.br_startblock); in xfs_qm_dqalloc() 573 xfs_bmbt_irec_t map; in xfs_qm_dqtobp() local 597 XFS_DQUOT_CLUSTER_SIZE_FSB, &map, &nmaps, 0); in xfs_qm_dqtobp() 604 ASSERT(map.br_blockcount == 1); in xfs_qm_dqtobp() 612 ASSERT(map.br_startblock != DELAYSTARTBLOCK); in xfs_qm_dqtobp() [all …]
|
/fs/omfs/ |
D | bitmap.c | 47 static int set_run(struct super_block *sb, int map, in set_run() argument 56 bh = sb_bread(sb, clus_to_blk(sbi, sbi->s_bitmap_ino) + map); in set_run() 63 map++; in set_run() 68 clus_to_blk(sbi, sbi->s_bitmap_ino) + map); in set_run() 73 set_bit(bit, sbi->s_imap[map]); in set_run() 76 clear_bit(bit, sbi->s_imap[map]); in set_run() 95 unsigned int map, bit; in omfs_allocate_block() local 101 map = tmp; in omfs_allocate_block() 104 if (map >= sbi->s_imap_size || test_and_set_bit(bit, sbi->s_imap[map])) in omfs_allocate_block() 108 bh = sb_bread(sb, clus_to_blk(sbi, sbi->s_bitmap_ino) + map); in omfs_allocate_block() [all …]
|
/fs/btrfs/ |
D | volumes.c | 2371 struct map_lookup *map; in btrfs_relocate_chunk() local 2407 map = (struct map_lookup *)em->bdev; in btrfs_relocate_chunk() 2409 for (i = 0; i < map->num_stripes; i++) { in btrfs_relocate_chunk() 2410 ret = btrfs_free_dev_extent(trans, map->stripes[i].dev, in btrfs_relocate_chunk() 2411 map->stripes[i].physical); in btrfs_relocate_chunk() 2414 if (map->stripes[i].dev) { in btrfs_relocate_chunk() 2415 ret = btrfs_update_device(trans, map->stripes[i].dev); in btrfs_relocate_chunk() 2424 trace_btrfs_chunk_free(root, map, chunk_offset, em->len); in btrfs_relocate_chunk() 2426 if (map->type & BTRFS_BLOCK_GROUP_SYSTEM) { in btrfs_relocate_chunk() 2438 kfree(map); in btrfs_relocate_chunk() [all …]
|
D | raid56.h | 22 static inline int nr_parity_stripes(struct map_lookup *map) in nr_parity_stripes() argument 24 if (map->type & BTRFS_BLOCK_GROUP_RAID5) in nr_parity_stripes() 26 else if (map->type & BTRFS_BLOCK_GROUP_RAID6) in nr_parity_stripes() 32 static inline int nr_data_stripes(struct map_lookup *map) in nr_data_stripes() argument 34 return map->num_stripes - nr_parity_stripes(map); in nr_data_stripes()
|
/fs/adfs/ |
D | map.c | 76 unsigned char *map = dm->dm_bh->b_data + 4; in lookup_zone() local 82 frag = GET_FRAG_ID(map, start, idmask); in lookup_zone() 89 __le32 *_map = (__le32 *)map; in lookup_zone() 137 unsigned char *map = dm->dm_bh->b_data; in scan_free_map() local 145 frag = GET_FRAG_ID(map, start, idmask); in scan_free_map() 160 frag = GET_FRAG_ID(map, start, idmask); in scan_free_map() 167 __le32 *_map = (__le32 *)map; in scan_free_map()
|
D | super.c | 73 static unsigned char adfs_calczonecheck(struct super_block *sb, unsigned char *map) in adfs_calczonecheck() argument 80 v0 += map[i] + (v3 >> 8); in adfs_calczonecheck() 82 v1 += map[i + 1] + (v0 >> 8); in adfs_calczonecheck() 84 v2 += map[i + 2] + (v1 >> 8); in adfs_calczonecheck() 86 v3 += map[i + 3] + (v2 >> 8); in adfs_calczonecheck() 90 v1 += map[1] + (v0 >> 8); in adfs_calczonecheck() 91 v2 += map[2] + (v1 >> 8); in adfs_calczonecheck() 92 v3 += map[3] + (v2 >> 8); in adfs_calczonecheck() 103 unsigned char *map; in adfs_checkmap() local 105 map = dm[i].dm_bh->b_data; in adfs_checkmap() [all …]
|
/fs/ext2/ |
D | xip.h | 19 #define mapping_is_xip(map) unlikely(map->a_ops->get_xip_mem) argument 21 #define mapping_is_xip(map) 0 argument
|