Lines Matching refs:mapp
2146 struct xfs_bmbt_irec map, *mapp; in xfs_da_grow_inode_int() local
2168 mapp = ↦ in xfs_da_grow_inode_int()
2178 mapp = kmem_alloc(sizeof(*mapp) * count, 0); in xfs_da_grow_inode_int()
2184 args->total, &mapp[mapi], &nmap); in xfs_da_grow_inode_int()
2190 b = mapp[mapi - 1].br_startoff + in xfs_da_grow_inode_int()
2191 mapp[mapi - 1].br_blockcount; in xfs_da_grow_inode_int()
2195 mapp = NULL; in xfs_da_grow_inode_int()
2202 got += mapp[i].br_blockcount; in xfs_da_grow_inode_int()
2203 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int()
2204 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int()
2214 if (mapp != &map) in xfs_da_grow_inode_int()
2215 kmem_free(mapp); in xfs_da_grow_inode_int()
2502 struct xfs_buf_map **mapp, in xfs_dabuf_map() argument
2508 struct xfs_buf_map *map = *mapp; in xfs_dabuf_map()
2531 *mapp = map; in xfs_dabuf_map()
2591 struct xfs_buf_map map, *mapp = ↦ in xfs_da_get_buf() local
2596 error = xfs_dabuf_map(dp, bno, 0, whichfork, &mapp, &nmap); in xfs_da_get_buf()
2600 error = xfs_trans_get_buf_map(tp, mp->m_ddev_targp, mapp, nmap, 0, &bp); in xfs_da_get_buf()
2607 if (mapp != &map) in xfs_da_get_buf()
2608 kmem_free(mapp); in xfs_da_get_buf()
2628 struct xfs_buf_map map, *mapp = ↦ in xfs_da_read_buf() local
2633 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_read_buf()
2637 error = xfs_trans_read_buf_map(mp, tp, mp->m_ddev_targp, mapp, nmap, 0, in xfs_da_read_buf()
2648 if (mapp != &map) in xfs_da_read_buf()
2649 kmem_free(mapp); in xfs_da_read_buf()
2666 struct xfs_buf_map *mapp; in xfs_da_reada_buf() local
2670 mapp = ↦ in xfs_da_reada_buf()
2672 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_reada_buf()
2676 xfs_buf_readahead_map(dp->i_mount->m_ddev_targp, mapp, nmap, ops); in xfs_da_reada_buf()
2679 if (mapp != &map) in xfs_da_reada_buf()
2680 kmem_free(mapp); in xfs_da_reada_buf()