Lines Matching defs:imap
952 * This first step determines the longest subset of the passed-in imap
961 struct xfs_bmbt_irec *imap,
972 agbno = XFS_FSB_TO_AGBNO(sc->mp, imap->br_startblock);
973 agbno_next = agbno + imap->br_blockcount;
978 xfs_rmap_ino_owner(&oinfo, ip->i_ino, whichfork, imap->br_startoff);
1000 imap->br_blockcount = len;
1036 * Invalidate any buffers for this file mapping. The @imap blockcount may be
1044 struct xfs_bmbt_irec *imap)
1062 agbno = bno = XFS_FSB_TO_AGBNO(sc->mp, imap->br_startblock);
1063 agbno_next = agbno + imap->br_blockcount;
1076 off = imap->br_startoff + imap->br_blockcount;
1096 scan_blocks = off - imap->br_startoff;
1098 trace_xreap_bmapi_binval_scan(sc, imap, scan_blocks);
1131 imap->br_blockcount = agbno_next - bno;
1142 imap->br_blockcount);
1148 * The number of blocks disposed of is returned in @imap->br_blockcount.
1155 struct xfs_bmbt_irec *imap,
1170 XFS_FSB_TO_AGBNO(sc->mp, imap->br_startblock),
1171 imap->br_blockcount);
1178 xfs_bmap_unmap_extent(sc->tp, ip, whichfork, imap);
1180 -(int64_t)imap->br_blockcount);
1181 xfs_rmap_unmap_extent(sc->tp, ip, whichfork, imap);
1193 XFS_FSB_TO_AGBNO(sc->mp, imap->br_startblock),
1194 imap->br_blockcount);
1202 error = xreap_bmapi_binval(sc, ip, whichfork, imap);
1203 if (error || imap->br_blockcount == 0)
1211 xfs_bmap_unmap_extent(sc->tp, ip, whichfork, imap);
1213 -(int64_t)imap->br_blockcount);
1214 return xfs_free_extent_later(sc->tp, imap->br_startblock,
1215 imap->br_blockcount, NULL, XFS_AG_RESV_NONE,
1221 * the imap will reflect the mapping that was removed from the fork.
1228 struct xfs_bmbt_irec *imap)
1236 trace_xreap_ifork_extent(sc, ip, whichfork, imap);
1238 agno = XFS_FSB_TO_AGNO(sc->mp, imap->br_startblock);
1251 error = xreap_bmapi_select(sc, ip, whichfork, imap, &crosslinked);
1255 error = xrep_reap_bmapi_iter(sc, ip, whichfork, imap, crosslinked);
1288 struct xfs_bmbt_irec imap;
1292 error = xfs_bmapi_read(ip, off, XFS_MAX_FILEOFF - off, &imap,
1296 if (nimaps != 1 || imap.br_startblock == DELAYSTARTBLOCK) {
1305 if (xfs_bmap_is_real_extent(&imap)) {
1306 error = xreap_ifork_extent(sc, ip, whichfork, &imap);
1315 off = imap.br_startoff + imap.br_blockcount;