Lines Matching refs:bmap
305 struct xfs_map_extent *bmap, in xfs_trans_set_bmap_flags() argument
310 bmap->me_flags = 0; in xfs_trans_set_bmap_flags()
314 bmap->me_flags = type; in xfs_trans_set_bmap_flags()
320 bmap->me_flags |= XFS_BMAP_EXTENT_UNWRITTEN; in xfs_trans_set_bmap_flags()
322 bmap->me_flags |= XFS_BMAP_EXTENT_ATTR_FORK; in xfs_trans_set_bmap_flags()
333 struct xfs_bmap_intent *bmap; in xfs_bmap_update_log_item() local
337 bmap = container_of(item, struct xfs_bmap_intent, bi_list); in xfs_bmap_update_log_item()
350 map->me_owner = bmap->bi_owner->i_ino; in xfs_bmap_update_log_item()
351 map->me_startblock = bmap->bi_bmap.br_startblock; in xfs_bmap_update_log_item()
352 map->me_startoff = bmap->bi_bmap.br_startoff; in xfs_bmap_update_log_item()
353 map->me_len = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_log_item()
354 xfs_trans_set_bmap_flags(map, bmap->bi_type, bmap->bi_whichfork, in xfs_bmap_update_log_item()
355 bmap->bi_bmap.br_state); in xfs_bmap_update_log_item()
376 struct xfs_bmap_intent *bmap; in xfs_bmap_update_finish_item() local
380 bmap = container_of(item, struct xfs_bmap_intent, bi_list); in xfs_bmap_update_finish_item()
381 count = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_finish_item()
383 bmap->bi_type, in xfs_bmap_update_finish_item()
384 bmap->bi_owner, bmap->bi_whichfork, in xfs_bmap_update_finish_item()
385 bmap->bi_bmap.br_startoff, in xfs_bmap_update_finish_item()
386 bmap->bi_bmap.br_startblock, in xfs_bmap_update_finish_item()
388 bmap->bi_bmap.br_state); in xfs_bmap_update_finish_item()
390 ASSERT(bmap->bi_type == XFS_BMAP_UNMAP); in xfs_bmap_update_finish_item()
391 bmap->bi_bmap.br_blockcount = count; in xfs_bmap_update_finish_item()
394 kmem_free(bmap); in xfs_bmap_update_finish_item()
411 struct xfs_bmap_intent *bmap; in xfs_bmap_update_cancel_item() local
413 bmap = container_of(item, struct xfs_bmap_intent, bi_list); in xfs_bmap_update_cancel_item()
414 kmem_free(bmap); in xfs_bmap_update_cancel_item()
439 struct xfs_map_extent *bmap; in xfs_bui_recover() local
466 bmap = &buip->bui_format.bui_extents[0]; in xfs_bui_recover()
468 XFS_FSB_TO_DADDR(mp, bmap->me_startblock)); in xfs_bui_recover()
470 XFS_INO_TO_FSB(mp, bmap->me_owner))); in xfs_bui_recover()
471 switch (bmap->me_flags & XFS_BMAP_EXTENT_TYPE_MASK) { in xfs_bui_recover()
481 bmap->me_len == 0 || in xfs_bui_recover()
484 bmap->me_len >= mp->m_sb.sb_agblocks || in xfs_bui_recover()
486 (bmap->me_flags & ~XFS_BMAP_EXTENT_FLAGS)) { in xfs_bui_recover()
509 error = xfs_iget(mp, tp, bmap->me_owner, 0, XFS_ILOCK_EXCL, &ip); in xfs_bui_recover()
517 state = (bmap->me_flags & XFS_BMAP_EXTENT_UNWRITTEN) ? in xfs_bui_recover()
519 whichfork = (bmap->me_flags & XFS_BMAP_EXTENT_ATTR_FORK) ? in xfs_bui_recover()
521 bui_type = bmap->me_flags & XFS_BMAP_EXTENT_TYPE_MASK; in xfs_bui_recover()
533 count = bmap->me_len; in xfs_bui_recover()
535 bmap->me_startoff, bmap->me_startblock, &count, state); in xfs_bui_recover()
541 irec.br_startblock = bmap->me_startblock; in xfs_bui_recover()
543 irec.br_startoff = bmap->me_startoff; in xfs_bui_recover()