Lines Matching refs:imap

216 	xfs_imap_t	imap;  in xfs_inotobp()  local
225 imap.im_blkno = 0; in xfs_inotobp()
226 error = xfs_imap(mp, tp, ino, &imap, XFS_IMAP_LOOKUP); in xfs_inotobp()
239 if ((imap.im_blkno + imap.im_len) > in xfs_inotobp()
244 imap.im_blkno, imap.im_len,mp->m_fsname); in xfs_inotobp()
252 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap.im_blkno, in xfs_inotobp()
253 (int)imap.im_len, XFS_BUF_LOCK, &bp); in xfs_inotobp()
280 *dipp = (xfs_dinode_t *)xfs_buf_offset(bp, imap.im_boffset); in xfs_inotobp()
282 *offset = imap.im_boffset; in xfs_inotobp()
318 xfs_imap_t imap; in xfs_itobp() local
329 imap.im_blkno = bno; in xfs_itobp()
330 error = xfs_imap(mp, tp, ip->i_ino, &imap, XFS_IMAP_LOOKUP); in xfs_itobp()
341 if ((imap.im_blkno + imap.im_len) > in xfs_itobp()
349 (unsigned long long) imap.im_blkno, in xfs_itobp()
350 (unsigned long long) imap.im_len, in xfs_itobp()
360 ip->i_blkno = imap.im_blkno; in xfs_itobp()
361 ip->i_len = imap.im_len; in xfs_itobp()
362 ip->i_boffset = imap.im_boffset; in xfs_itobp()
368 imap.im_blkno = ip->i_blkno; in xfs_itobp()
369 imap.im_len = ip->i_len; in xfs_itobp()
370 imap.im_boffset = ip->i_boffset; in xfs_itobp()
372 ASSERT(bno == 0 || bno == imap.im_blkno); in xfs_itobp()
378 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap.im_blkno, in xfs_itobp()
379 (int)imap.im_len, XFS_BUF_LOCK, &bp); in xfs_itobp()
386 error, (unsigned long long) imap.im_blkno, in xfs_itobp()
387 (unsigned long long) imap.im_len); in xfs_itobp()
397 ni = BBTOB(imap.im_len) >> mp->m_sb.sb_inodelog; in xfs_itobp()
414 (unsigned long long)imap.im_blkno, i, in xfs_itobp()
435 *dipp = (xfs_dinode_t *)xfs_buf_offset(bp, imap.im_boffset); in xfs_itobp()
2715 xfs_imap_t *imap, in xfs_imap() argument
2723 fsbno = imap->im_blkno ? in xfs_imap()
2724 XFS_DADDR_TO_FSB(mp, imap->im_blkno) : NULLFSBLOCK; in xfs_imap()
2729 imap->im_blkno = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_imap()
2730 imap->im_len = XFS_FSB_TO_BB(mp, len); in xfs_imap()
2731 imap->im_agblkno = XFS_FSB_TO_AGBNO(mp, fsbno); in xfs_imap()
2732 imap->im_ioffset = (ushort)off; in xfs_imap()
2733 imap->im_boffset = (ushort)(off << mp->m_sb.sb_inodelog); in xfs_imap()