Lines Matching refs:map
255 struct xfs_buf_map *map, in xfs_buf_alloc() argument
292 bp->b_rhash_key = map[0].bm_bn; in xfs_buf_alloc()
301 bp->b_maps[i].bm_bn = map[i].bm_bn; in xfs_buf_alloc()
302 bp->b_maps[i].bm_len = map[i].bm_len; in xfs_buf_alloc()
303 bp->b_length += map[i].bm_len; in xfs_buf_alloc()
330 const struct xfs_buf_map *map = arg->key; in _xfs_buf_obj_cmp() local
339 if (bp->b_rhash_key != map->bm_bn) in _xfs_buf_obj_cmp()
342 if (unlikely(bp->b_length != map->bm_len)) { in _xfs_buf_obj_cmp()
354 if (!(map->bm_flags & XBM_LIVESCAN)) in _xfs_buf_obj_cmp()
388 struct xfs_buf_map *map) in xfs_buf_map_verify() argument
393 ASSERT(!(BBTOB(map->bm_len) < btp->bt_meta_sectorsize)); in xfs_buf_map_verify()
394 ASSERT(!(BBTOB(map->bm_bn) & (xfs_off_t)btp->bt_meta_sectormask)); in xfs_buf_map_verify()
401 if (map->bm_bn < 0 || map->bm_bn >= eofs) { in xfs_buf_map_verify()
404 __func__, map->bm_bn, eofs); in xfs_buf_map_verify()
460 struct xfs_buf_map *map, in xfs_buf_lookup() argument
468 bp = rhashtable_lookup(&bch->bc_hash, map, xfs_buf_hash_params); in xfs_buf_lookup()
496 struct xfs_buf_map *map, in xfs_buf_find_insert() argument
505 error = xfs_buf_alloc(btp, map, nmaps, flags, &new_bp); in xfs_buf_find_insert()
546 const struct xfs_buf_map *map) in xfs_buftarg_get_pag() argument
552 return xfs_perag_get(mp, xfs_daddr_to_agno(mp, map->bm_bn)); in xfs_buftarg_get_pag()
573 struct xfs_buf_map *map, in xfs_buf_get_map() argument
581 struct xfs_buf_map cmap = { .bm_bn = map[0].bm_bn }; in xfs_buf_get_map()
588 cmap.bm_len += map[i].bm_len; in xfs_buf_get_map()
609 error = xfs_buf_find_insert(btp, bch, pag, &cmap, map, nmaps, in xfs_buf_get_map()
687 struct xfs_buf_map *map, in xfs_buf_read_map() argument
702 error = xfs_buf_get_map(target, map, nmaps, flags, &bp); in xfs_buf_read_map()
764 struct xfs_buf_map *map, in xfs_buf_readahead_map() argument
778 if (xfs_buf_get_map(target, map, nmaps, flags | XBF_TRYLOCK, &bp)) in xfs_buf_readahead_map()
843 DEFINE_SINGLE_BUF_MAP(map, XFS_BUF_DADDR_NULL, numblks); in xfs_buf_get_uncached()
845 error = xfs_buf_alloc(target, &map, 1, 0, bpp); in xfs_buf_get_uncached()
1338 unsigned int map = 0; in xfs_buf_submit_bio() local
1357 for (map = 0; map < bp->b_map_count - 1; map++) { in xfs_buf_submit_bio()
1360 split = bio_split(bio, bp->b_maps[map].bm_len, GFP_NOFS, in xfs_buf_submit_bio()
1362 split->bi_iter.bi_sector = bp->b_maps[map].bm_bn; in xfs_buf_submit_bio()
1366 bio->bi_iter.bi_sector = bp->b_maps[map].bm_bn; in xfs_buf_submit_bio()